fun(Condition) ->Condition(Message) end
is a lambda function that applies the function Condition
to the value of Message
(taken as a closure on the surrounding code).
lists:any
is a function that takes a predicate and a list of values, and calls the predicate on each value in turn, and returns the atom true
if any of the predicate calls do.
Overall, the result is the atom true
if none of the Condition
functions in the list Conditions
return true
for the Message
value.
EDIT -- add documentation for lists:any
any(Pred, List) -> bool()
Types:
Pred = fun(Elem) -> bool()
Elem = term()
List = [term()]
Returns true if Pred(Elem)
returns true for at least one element Elem
in List.