Hoogle Search
Within LTS Haskell 24.5 (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 -> Boolbasic-prelude BasicPrelude 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-lib-parser GHC.Prelude.Basic 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 :: forall t (m :: Type -> Type) a . (Foldable t, Monad m) => Predicate m a -> Predicate m (t a)skeletest Skeletest.Internal.Predicate A predicate checking if the input is a list-like type where some element matches the given predicate.
>>> [1, 2, 3] `shouldSatisfy` P.any (P.eq 1)
any :: forall t (m :: Type -> Type) a . (Foldable t, Monad m) => Predicate m a -> Predicate m (t a)skeletest Skeletest.Predicate A predicate checking if the input is a list-like type where some element matches the given predicate.
>>> [1, 2, 3] `shouldSatisfy` P.any (P.eq 1)
-
bytesmith Data.Bytes.Parser Consumes and returns the next byte in the input. Fails if no characters are left.
-
bytesmith Data.Bytes.Parser.Ascii Consumes and returns the next character in the input.
-
bytesmith Data.Bytes.Parser.Latin Consumes and returns the next character in the input.
any :: (Contiguous arr, Element arr a) => (a -> Bool) -> arr a -> Boolcontiguous Data.Primitive.Contiguous No documentation available.
any :: Collection c => (Element c -> Bool) -> c -> Boolfoundation Foundation Determine is any elements of the collection satisfy the predicate
any :: Collection c => (Element c -> Bool) -> c -> Boolfoundation Foundation.Collection Determine is any elements of the collection satisfy the predicate