Funx.Predicate.Atom (funx v0.8.6)
View SourcePredicate that checks if a value is an atom.
Options
None required.
Examples
use Funx.Predicate
alias Funx.Predicate.Atom
# Check if status is an atom
pred do
check :status, Atom
end
# Combined with other predicates
pred do
check :type, Atom
check :type, {In, values: [:user, :admin, :guest]}
end