REBOL 3 Docs | Guide | Concepts | Functions | Datatypes | Errors |
TOC < Back Next > | Updated: 3-Aug-2010 Edit History |
Returns the last value of a series.
Arguments:
value [series! tuple! gob!]
LAST returns the last value of a series. If the series is empty, LAST will cause an error.
print last "abcde"
e
print last [1 2 3 4 5]
5
print last %file
e
probe last 'system/options
options
If you do not want an error when the series is empty, use the PICK function instead:
string: ""
print pick back tail string 1
none
TOC < Back Next > | REBOL.com - WIP Wiki | Feedback Admin |