Matcha.Context.FilterMap (Matcha v0.1.3) View Source
Functions and operators that :filter_map
match specs can use in their bodies.
Specs created in the :filter_map
context are unique in that they can differentiate
between specs that fail to find a matching clause for the given input,
and specs with matching clauses that literally return the false
value.
They return :no_match
in the former case, and {:matched, value}
tuples in the latter,
where value
can be a literal false
returned from a clause.
No additional functions besides those defined in Matcha.Context.Common
can be used in :filter_map
contexts.