Navigation: Developing Apps > BINETIX® AGE™ API > The Node > Toolkits > age_lists
find_keys/2
Description
find_keys/2 is an Erlang function exported by "age_lists" module.
Returns a list of all found {Key, Value} tuples within a list searching by particular set of keys. If not found returns an empty list.
References
None
Parameters
Name
Type
Keys
list()
List of key names.
Input
Input list of terms.
Result
Value or Type
Returns a list of all {Key, Value} tuples found within the input list.
Code Sample
> age_lists:find_keys([b, a, z], [{a, 1}, {b, 2}, {c, 3}]). [{b,2}, {a,1}]