last function
The last element of a list.
How to write it
last(list)
- list
- The list. Takes a list.
Examples
last([1, 2, 3])In the solver,
Open in the solverlast([1, 2, 3])gives3.
The last element of a list.
last([1, 2, 3])In the solver, last([1, 2, 3]) gives 3.