Navigation: Developing Apps > BINETIX® AGE™ API > The Node > Toolkits > age_lists
check/2
Description
check/2 is an Erlang function exported by "age_lists" module.
Checks for an element in a list, and respectively when found returns true or false.
References
None
Parameters
Name
Type
Element
any()
Any term that could exist into the input list.
Input
list()
Input list of terms.
Result
Value or Type
boolean()
Returns true when the element is found, otherwise returns false.
Code Sample
> age_lists:check(10, [a, b, c, 10, 20, 30]). true