Navigation: Developing Apps > BINETIX® AGE™ API > The Node > Toolkits > age_lists
last/1
Description
last/1 is an Erlang function exported by "age_lists" module.
Returns the last element from list, or raises an exception when the input list is empty.
References
None
Parameters
Name
Type
Input
list()
Input list of terms.
Result
Value or Type
any()
Returns the first term from list.
Code Sample
> age_lists:last([a, b, c, 10, 20, 30]). 30