|
lastItem >>-lastItem----------------------------------------------------><
Returns the last item in the array or the Nil object if the array is empty. Queue class - lastItem method
musketeers=.array~of("Porthos","Athos","Aramis"") /* Creates array MUSKETEERS */
item=musketeers~lastItem /* Gives last item in array */
/* (Assigns "Aramis" to item) */
|