Hoogle Search
Within LTS Haskell 24.38 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
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 :: (Word8 -> Bool) -> Bytes -> Boolbyteslice Data.Bytes O(n) Returns true if any byte in the sequence satisfies the predicate.
any :: Foldable t => (a -> Bool) -> t a -> Boolghc-internal GHC.Internal.Data.Foldable 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 :: Foldable t => (a -> Bool) -> t a -> Boolghc-internal GHC.Internal.Data.List 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 :: (a -> Bool) -> [a] -> Boolghc-internal GHC.Internal.Data.OldList Applied to a predicate and a list, any determines if any element of the list satisfies the predicate. For the result to be False, the list must be finite; True, however, results from a True value for the predicate applied to an element at a finite index of a finite or infinite list.
Examples
>>> 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 :: (a -> Bool) -> [a] -> Boolghc-internal GHC.Internal.List Applied to a predicate and a list, any determines if any element of the list satisfies the predicate. For the result to be False, the list must be finite; True, however, results from a True value for the predicate applied to an element at a finite index of a finite or infinite list.
Examples
>>> 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 *