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 :: (a -> Bool) -> Fold a Boolfoldl Control.Foldl (any predicate) returns True if any element satisfies the predicate, False otherwise
any :: (Word8 -> Bool) -> Fold ByteString Boolfoldl Control.Foldl.ByteString (any predicate) returns True if any byte satisfies the predicate, False otherwise
any :: (Char -> Bool) -> Fold Text Boolfoldl Control.Foldl.Text (any predicate) returns True if any character satisfies the predicate, False otherwise
any :: (Char -> Bool) -> ShortText -> Booltext-short Data.Text.Short Test whether any code points in ShortText satisfy a predicate.
>>> any (> 'c') "abcdabcd" True
>>> any (const True) "" False
>>> any (== 'c') "abdabd" False
any p t == not (all (not . p) t)
any :: (C a, ByteSource source) => source adata-accessor Data.Accessor.BinaryRead No documentation available.
any :: (a -> Bool) -> InputStream a -> IO Boolio-streams System.IO.Streams.Combinators any predicate stream returns True if any element in stream matches the predicate. any consumes as few elements as possible, ending consumption if an element satisfies the predicate.
ghci> is <- Streams.fromList [1, 2, 3] ghci> Streams.any (> 0) is -- Consumes one element True ghci> Streams.read is Just 2 ghci> Streams.any even is -- Only 3 remains False
any :: MonoFoldable mono => (Element mono -> Bool) -> mono -> Boolmono-traversable Data.MonoTraversable.Unprefixed Synonym for oany
any :: (Word8 -> Bool) -> ByteString -> Boolrio RIO.ByteString O(n) Applied to a predicate and a ByteString, any determines if any element of the ByteString satisfies the predicate.
any :: (Word8 -> Bool) -> ByteString -> Boolrio RIO.ByteString.Lazy O(n) Applied to a predicate and a ByteString, any determines if any element of the ByteString satisfies the predicate.
any :: Foldable t => (a -> Bool) -> t a -> Boolrio RIO.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 *