Skip to content

How to get the value of last element in a vector/array ?

2 messages · Ng Stanley, Chuck Cleland

#
On 3/15/2008 1:30 AM, Ng Stanley wrote:
I'm not sure what you mean by "without using functions", but how 
about this:

tail(a, 1)

?tail