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