last
To get the last item on a list, use last
:
last $myList
returns 5
. This is roughly analogous to reversing a list and
then calling first
.
To get the last item on a list, use last
:
last $myList
returns 5
. This is roughly analogous to reversing a list and
then calling first
.