none
Full name: taxi.stdlib.none
Signature
declare extension function <T> none(collection: T[], predicate: (T) -> Boolean): BooleanDescription
Returns true if none of the items in the collection satisfy the predicate.
Returns true for an empty collection (vacuous truth).
// Check that no task is overdue
find { sprint: Sprint } as {
noOverdue: Boolean = sprint.tasks.none((task) -> task.isOverdue)
}Examples
Returns true when no item in the collection satisfies the predicate.
Try it out
Schema
Query Plan
Play with this snippet by editing it here, or edit it on Taxi Playground
Result
Query failed