is_kind/2, and operators:
Guards clauses are a key feature in Elixir. Researching how to make it easier for developers to define guards, has led me to two enhancement proposal. This is the first one, which will allow developers to write guards, guard-safe macros and regular expressions in a more natural and succinct way.
The following macro is allowed in guards:
is_kind(term, kind)determines if a given
termis of a certain
as well as the following operators:
term is kindsdetermines if
termis each kind in