Navigation: Developing Apps > BINETIX® AGE™ API > The Node > Toolkits > age_lists
list_key/2
Description
list_key/2 is an Erlang function exported by "age_lists" module.
Lists all occurrence of a key in a list of keys.
References
None
Parameters
Name
Type
Key
atom()
Key name.
Input
list()
Input list of terms.
Result
Value or Type
Returns all occurrence of the Key.
Code Sample
> age_lists:list_key(b, [{a, 1}, {b, 2}, {c, 3}, {b, 4}]). [{b,2}, {b,4}]