Navigation: Developing Apps > BINETIX® AGE™ API > The Node > Toolkits > age_lists
value/2
Description
value/2 is an Erlang function exported by "age_lists" module.
Returns an item from List positioned by Index.
References
None
Parameters
Name
Type
Input
list()
Input list of terms.
Index
integer()
Index position starting at 1.
Result
Value or Type
any()
Returns an item from list, or raises an exception when Index is out of the List's range.
Code Sample
> age_lists:value([a, b, c, 10, 20, 30], 5). 20