Navigation: Developing Apps > BINETIX® AGE™ API > The Node > Toolkits > age_lists
first/1
Description
first/1 is an Erlang function exported by "age_lists" module.
Returns the first 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:first([a, b, c, 10, 20, 30]). a