Hoogle Search
Within LTS Haskell 24.6 (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 -> Boolrelude Relude.Foldable.Reexport 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 :: Monad m => (a -> Bool) -> Stream (Of a) m r -> m (Of Bool r)streaming Streaming.Prelude No documentation available.
any :: (Char -> Bool) -> YiString -> Boolyi-rope Yi.Rope YiString specialised any. Implementation note: this currently just does any by doing ‘TX.Text’ conversions upon consecutive chunks. We should be able to speed it up by running it in parallel over multiple chunks.
any :: forall (v :: Type -> Type) a (n :: Nat) . Vector v a => (a -> Bool) -> Vector v n a -> Boolvector-sized Data.Vector.Generic.Sized O(n) Check if any element satisfies the predicate.
any :: forall a (n :: Nat) . Prim a => (a -> Bool) -> Vector n a -> Boolvector-sized Data.Vector.Primitive.Sized O(n) Check if any element satisfies the predicate.
any :: forall a (n :: Nat) . (a -> Bool) -> Vector n a -> Boolvector-sized Data.Vector.Sized O(n) Check if any element satisfies the predicate.
any :: forall a (n :: Nat) . Storable a => (a -> Bool) -> Vector n a -> Boolvector-sized Data.Vector.Storable.Sized O(n) Check if any element satisfies the predicate.
any :: forall a (n :: Nat) . Unbox a => (a -> Bool) -> Vector n a -> Boolvector-sized Data.Vector.Unboxed.Sized O(n) Check if any element satisfies the predicate.
any :: PrimType ty => (ty -> Bool) -> Block ty -> Boolbasement Basement.Block No documentation available.
any :: (ty -> Bool) -> Array ty -> Boolbasement Basement.BoxedArray No documentation available.