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.
all :: (Char -> Bool) -> ByteString -> Boolbytestring Data.ByteString.Lazy.Char8 Applied to a predicate and a ByteString, all determines if all elements of the ByteString satisfy the predicate.
all :: (Word8 -> Bool) -> ShortByteString -> Boolbytestring Data.ByteString.Short O(n) Applied to a predicate and a ShortByteString, all determines if all elements of the ShortByteString satisfy the predicate.
all :: (Word8 -> Bool) -> ShortByteString -> Boolbytestring Data.ByteString.Short.Internal O(n) Applied to a predicate and a ShortByteString, all determines if all elements of the ShortByteString satisfy the predicate.
all :: (Char -> Bool) -> Text -> Booltext Data.Text O(n) all p t determines whether all characters in the Text t satisfy the predicate p.
all :: (Char -> Bool) -> Stream Char -> Booltext Data.Text.Internal.Fusion.Common O(n) all p xs determines if all characters in the Text xs satisfy the predicate p. Properties
all f . stream = all f
all :: (Char -> Bool) -> Text -> Booltext Data.Text.Lazy O(n) all p t determines whether all characters in the Text t satisfy the predicate p.
all :: (a -> Bool) -> Array a -> Boolunordered-containers Data.HashMap.Internal.Array Verifies that a predicate holds for all elements of an array.
all :: forall (m :: Type -> Type) a o . Monad m => (a -> Bool) -> ConduitT a o m Boolconduit Data.Conduit.Combinators Check that all values in the stream return True. Subject to shortcut logic: at the first False, consumption of the stream will stop. Subject to fusion
all :: Foldable t => (a -> Bool) -> t a -> Boolhedgehog Hedgehog.Internal.Prelude Determines whether all elements of the structure satisfy the predicate.
Examples
Basic usage:>>> all (> 3) [] True
>>> all (> 3) [1,2] False
>>> all (> 3) [1,2,3,4,5] False
>>> all (> 3) [1..] False
>>> all (> 3) [4..] * Hangs forever *
all :: ByteArrayAccess ba => (Word8 -> Bool) -> ba -> Boolmemory Data.ByteArray Check if all elements of a byte array satisfy a predicate