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 :: (Word8 -> Bool) -> ShortByteString -> Boolbytestring Data.ByteString.Short O(n) Applied to a predicate and a ShortByteString, any determines if any element of the ShortByteString satisfies the predicate.
any :: (Word8 -> Bool) -> ShortByteString -> Boolbytestring Data.ByteString.Short.Internal O(n) Applied to a predicate and a ShortByteString, any determines if any element of the ShortByteString satisfies the predicate.
any :: (Char -> Bool) -> Text -> Booltext Data.Text O(n) any p t determines whether any character in the Text t satisfies the predicate p.
any :: (Char -> Bool) -> Stream Char -> Booltext Data.Text.Internal.Fusion.Common O(n) any p xs determines if any character in the stream xs satisfies the predicate p. Properties
any f . stream = any f
any :: (Char -> Bool) -> Text -> Booltext Data.Text.Lazy O(n) any p t determines whether any character in the Text t satisfies the predicate p.
any :: forall (m :: Type -> Type) a o . Monad m => (a -> Bool) -> ConduitT a o m Boolconduit Data.Conduit.Combinators Check that at least one value in the stream returns True. Subject to shortcut logic: at the first True, consumption of the stream will stop. Subject to fusion
any :: Foldable t => (a -> Bool) -> t a -> Boolhedgehog Hedgehog.Internal.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 :: ByteArrayAccess ba => (Word8 -> Bool) -> ba -> Boolmemory Data.ByteArray Check if any element of a byte array satisfies a predicate
any :: Foldable t => (a -> Bool) -> t a -> Boolghc GHC.Prelude.Basic No documentation available.
any :: Monad m => (a -> Bool) -> Producer a m () -> m Boolpipes Pipes.Prelude (any predicate p) determines whether any element of p satisfies the predicate.