any -package:relude package:protolude

Determines whether any element of the structure satisfies the predicate.

Examples

Basic usage:
>>> any (> 3) []
False
>>> any (> 3) [1,2]
False
>>> any (> 3) [1,2,3,4,5]
True
>>> any (> 3) [1..]
True
>>> any (> 3) [0, -1..]
* Hangs forever *
Zero or more.
Wait for any of the supplied Asyncs to complete. If the first to complete throws an exception, then that exception is re-thrown by waitAny. If multiple Asyncs complete or have completed, then the value returned corresponds to the first completed Async in the list.
Like waitAny, but also cancels the other asynchronous operations as soon as one has completed.
Wait for any of the supplied asynchronous operations to complete. The value returned is a pair of the Async that completed, and the result that would be returned by wait on that Async. If multiple Asyncs complete or have completed, then the value returned corresponds to the first completed Async in the list.
Like waitAnyCatch, but also cancels the other asynchronous operations as soon as one has completed.