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 -> Boolcabal-install-solver Distribution.Solver.Compat.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 :: Foldable t => (a -> Bool) -> t a -> Boolihaskell IHaskellPrelude 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 -> Boolincipit-base Incipit.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 :: Generator c => (Elem c -> Bool) -> c -> Boolreducers Data.Generator.Combinators Efficiently mapReduce any Generator checking to see if any of its values match the supplied predicate
mapReduceWith getAny
any :: SymVal a => (SBV a -> SBool) -> SList a -> SBoolsbv Data.SBV.List Check some element satisfies the predicate. -- >>> let isEven x = x sMod 2 .== 0 >>> any (sNot . isEven) [2, 4, 6, 8, 10 :: Integer] False >>> any isEven [2, 4, 6, 1, 8, 10 :: Integer] True
any :: forall (m :: Type -> Type) a . Monad m => (a -> Bool) -> Fold m a Boolstreamly-core Streamly.Data.Fold Returns True if any element of the input satisfies the predicate. Definition:
>>> any p = Fold.lmap p Fold.or
Example:>>> Stream.fold (Fold.any (== 0)) $ Stream.fromList [1,0,1] True
any :: forall (m :: Type -> Type) a . Monad m => (a -> Bool) -> Fold m a Boolstreamly-core Streamly.Internal.Data.Fold Returns True if any element of the input satisfies the predicate. Definition:
>>> any p = Fold.lmap p Fold.or
Example:>>> Stream.fold (Fold.any (== 0)) $ Stream.fromList [1,0,1] True
any :: Monad m => (a -> Bool) -> Stream m a -> m Boolstreamly-core Streamly.Internal.Data.Stream No documentation available.
any :: Monad m => (a -> Bool) -> StreamK m a -> m Boolstreamly-core Streamly.Internal.Data.StreamK No documentation available.
any :: forall (w :: Nat) . NatRepr w -> Domain wwhat4 What4.Utils.BVDomain.Bitwise Bitwise domain containing every bitvector value