Navigation: Developing Apps > BINETIX® AGE™ API > The Node > Toolkits > age_lists
count/2
Description
count/2 is an Erlang function exported by "age_lists" module.
Counts the occurrence of Term into the List.
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
integer()
Returns the occurrence counter.
Code Sample
> age_lists:count(a, [a, b, c, 10, 20, 30, a]). 2