To read the element at the front end of a vector, you use the firstElement method:
firstElement
v.firstElement()
To access the element at the back end of a vector, you use the lastElement method:
lastElement
v.lastElement()