Hoogle Search
Within LTS Haskell 24.4 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
any :: Foldable t => (a -> Bool) -> t a -> Boolrio RIO.Prelude 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 *
any :: (Char -> Bool) -> Text -> Boolrio RIO.Text O(n) any p t determines whether any character in the Text t satisfies the predicate p.
any :: (Char -> Bool) -> Text -> Boolrio RIO.Text.Lazy O(n) any p t determines whether any character in the Text t satisfies the predicate p.
any :: Vector v a => (a -> Bool) -> v a -> Boolrio RIO.Vector No documentation available.
any :: (a -> Bool) -> Vector a -> Boolrio RIO.Vector.Boxed No documentation available.
any :: Storable a => (a -> Bool) -> Vector a -> Boolrio RIO.Vector.Storable No documentation available.
any :: Unbox a => (a -> Bool) -> Vector a -> Boolrio RIO.Vector.Unboxed No documentation available.
any :: Storable a => (a -> Bool) -> Vector a -> Boolstorablevector Data.StorableVector O(n) Applied to a predicate and a Vector, any determines if any element of the Vector satisfies the predicate.
any :: Storable a => (a -> Bool) -> Vector a -> Boolstorablevector Data.StorableVector.Lazy No documentation available.
any :: Storable a => (a -> Bool) -> Vector a -> Boolstorablevector Data.StorableVector.Lazy.Pattern No documentation available.