Funx.Predicate.List (funx v0.8.8)

View Source

Predicate that checks if a value is a list.

Options

None required.

Examples

use Funx.Predicate

alias Funx.Predicate.List

# Check if tags is a list
pred do
  check :tags, List
end

# Combined with other predicates
pred do
  check :items, List
  check :items, {MinLength, min: 1}
end