any -package:relude -package:streaming -package:text package:rio

O(n) Applied to a predicate and a ByteString, any determines if any element of the ByteString satisfies the predicate.
Determines whether any element of the structure satisfies the predicate.
O(n) any p t determines whether any character in the Text t satisfies the predicate p. Subject to fusion.
O(n) Check if any element satisfies the predicate.

Examples

>>> import qualified Data.Vector as V

>>> V.any even $ V.fromList [1, 3, 7 :: Int]
False

>>> V.any even $ V.fromList [3, 2, 13 :: Int]
True

>>> V.any even (V.empty :: V.Vector Int)
False
O(n) Check if any element satisfies the predicate.

Examples

>>> import qualified Data.Vector as V

>>> V.any even $ V.fromList [1, 3, 7 :: Int]
False

>>> V.any even $ V.fromList [3, 2, 13 :: Int]
True

>>> V.any even (V.empty :: V.Vector Int)
False
O(n) Check if any element satisfies the predicate.

Examples

>>> import qualified Data.Vector.Storable as VS

>>> VS.any even $ VS.fromList [1, 3, 7 :: Int]
False

>>> VS.any even $ VS.fromList [3, 2, 13 :: Int]
True

>>> VS.any even (VS.empty :: VS.Vector Int)
False
O(n) Check if any element satisfies the predicate.

Examples

>>> import qualified Data.Vector.Unboxed as VU

>>> VU.any even $ VU.fromList [1, 3, 7 :: Int]
False

>>> VU.any even $ VU.fromList [3, 2, 13 :: Int]
True

>>> VU.any even (VU.empty :: VU.Vector Int)
False
Determines whether any element of the structure satisfies its appropriate predicate argument.
Zero or more.
Add years, matching month and day, with Feb 29th clipped to Feb 28th if necessary. For instance, 2004-02-29 + 2 years = 2006-02-28.
Add years, matching month and day, with Feb 29th rolled over to Mar 1st if necessary. For instance, 2004-02-29 + 2 years = 2006-03-01.