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 :: Foldable t => (a -> Bool) -> t a -> Boolrelude Relude.Foldable.Reexport 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 :: Monad m => (a -> Bool) -> Stream (Of a) m r -> m (Of Bool r)streaming Streaming.Prelude No documentation available.
all :: (Char -> Bool) -> YiString -> Boolyi-rope Yi.Rope YiString specialised all. See the implementation note for any.
all :: forall (v :: Type -> Type) a (n :: Nat) . Vector v a => (a -> Bool) -> Vector v n a -> Boolvector-sized Data.Vector.Generic.Sized O(n) Check if all elements satisfy the predicate.
all :: forall a (n :: Nat) . Prim a => (a -> Bool) -> Vector n a -> Boolvector-sized Data.Vector.Primitive.Sized O(n) Check if all elements satisfy the predicate.
all :: forall a (n :: Nat) . (a -> Bool) -> Vector n a -> Boolvector-sized Data.Vector.Sized O(n) Check if all elements satisfy the predicate.
all :: forall a (n :: Nat) . Storable a => (a -> Bool) -> Vector n a -> Boolvector-sized Data.Vector.Storable.Sized O(n) Check if all elements satisfy the predicate.
all :: forall a (n :: Nat) . Unbox a => (a -> Bool) -> Vector n a -> Boolvector-sized Data.Vector.Unboxed.Sized O(n) Check if all elements satisfy the predicate.
all :: PrimType ty => (ty -> Bool) -> Block ty -> Boolbasement Basement.Block No documentation available.
all :: (ty -> Bool) -> Array ty -> Boolbasement Basement.BoxedArray No documentation available.