Funx.Predicate.NonEmpty (funx v0.8.7)
View SourcePredicate that checks if a value is a non-empty list.
Options
None required.
Examples
use Funx.Predicate
alias Funx.Predicate.NonEmpty
# Check if tags is a non-empty list
pred do
check :tags, NonEmpty
end
# Combined with other predicates
pred do
check :items, NonEmpty
check :items, {MaxLength, max: 10}
end