:: [t] -> t package:vector

O(1) First element.
O(1) Last element.
O(1) First element, without checking if the vector is empty.
O(1) Last element, without checking if the vector is empty.