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.
-
verset Verset Boolean monoid under disjunction (||).
Any x <> Any y = Any (x || y)
Examples
>>> Any True <> mempty <> Any False Any {getAny = True}
>>> mconcat (map (\x -> Any (even x)) [2,4,6,7,8]) Any {getAny = True}
>>> Any False <> mempty Any {getAny = False}
-
verset Verset No documentation available.
any :: Foldable t => (a -> Bool) -> t a -> Boolbase 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 -> Boolbase Data.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 *
any :: Foldable t => (a -> Bool) -> t a -> Boolbase Data.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 :: (a -> Bool) -> [a] -> Boolbase GHC.List Applied to a predicate and a list, any determines if any element of the list satisfies the predicate. For the result to be False, the list must be finite; True, however, results from a True value for the predicate applied to an element at a finite index of a finite or infinite list.
Examples
>>> 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 :: (Word8 -> Bool) -> ByteString -> Boolbytestring Data.ByteString O(n) Applied to a predicate and a ByteString, any determines if any element of the ByteString satisfies the predicate.
any :: (Char -> Bool) -> ByteString -> Boolbytestring Data.ByteString.Char8 Applied to a predicate and a ByteString, any determines if any element of the ByteString satisfies the predicate.
any :: (Word8 -> Bool) -> ByteString -> Boolbytestring Data.ByteString.Lazy O(n) Applied to a predicate and a ByteString, any determines if any element of the ByteString satisfies the predicate.
any :: (Char -> Bool) -> ByteString -> Boolbytestring Data.ByteString.Lazy.Char8 Applied to a predicate and a ByteString, any determines if any element of the ByteString satisfies the predicate.