Funx.Predicate.Map (funx v0.8.8)

View Source

Predicate that checks if a value is a map.

Options

None required.

Examples

use Funx.Predicate

alias Funx.Predicate.Map

# Check if user is a map
pred do
  check :user, Map
end

# Combined with other predicates
pred do
  check :config, Map
  check :config, Required
end