Macaulay2 » Documentation
Packages » Macaulay2Doc » The Macaulay2 language » lists and sequences » any
next | previous | forward | backward | up | index | toc

# any -- whether any elements satisfy a specified condition

## See also

- scan -- apply a function to each element in a list or sequence
- apply -- apply a function to each element
- select -- select from a list, hash table, or string
- all -- whether all elements satisfy a specified condition
- isMember -- test membership in a list or set

### Menu

- any(BasicList,Function) -- whether any elements of a list satisfy a specified condition
- any(BasicList,BasicList,Function) -- whether any corresponding elements of a pair of lists satisfy a condition

## Ways to use any:

- any(BasicList,BasicList,Function) -- whether any corresponding elements of a pair of lists satisfy a condition
- any(BasicList,Function) -- whether any elements of a list satisfy a specified condition
- `any(ZZ,Function)` -- see any(BasicList,Function) -- whether any elements of a list satisfy a specified condition
- any(HashTable,Function) -- whether all key/value pairs in a hash table satisfy a specified condition

## For the programmer

The object any is a compiled function.

The source of this document is in /build/macaulay2-88fgJW/macaulay2-1.25.11+ds/M2/Macaulay2/packages/Macaulay2Doc/functions/any-doc.m2:14:0.