Skip to main content

Pair.any

anypredicate

Group: Logical

Documentation

Checks whether a predicate holds for at least one element of this pair.

Arguments

  • predicate: A function that takes a list element and returns a boolean value that says whether that value satisfies the conditions of the function.

Examples

Checking if any element of the list is larger than 3.

      Pair.new 1 5 . any (> 3)