Navigation: Developing Apps > BINETIX® AGE™ API > The Node > Toolkits > age_lists
find_key/3
Description
find_key/3 is an Erlang function exported by "age_lists" module.
Returns a key/value pair property within a List. If not found returns false.
References
None
Parameters
Name
Type
Key
atom()
Key name.
Input
list()
Input list of terms.
Optional. Renames the Key name in the result.
Result
Value or Type
{atom(), any()}
Code Sample
> age_lists:find_key(b, [{a, 1}, {b, 2}, {c, 3}]). {b, 2} > age_lists:find_key(b, [{a, 1}, {b, 2}, {c, 3}], z). {z, 2}