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) -> [a] -> Boolghc-internal GHC.Internal.Data.OldList 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 :: (a -> Bool) -> [a] -> Boolghc-internal GHC.Internal.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 :: (Char -> Bool) -> JSString -> Booljsaddle Data.JSString O(n) any p t determines whether any character in the JSString t satisifes the predicate p. Subject to fusion.
any :: (Char -> Bool) -> Stream Char -> Booljsaddle Data.JSString.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 :: Foldable t => (a -> Bool) -> t a -> Boolnumeric-prelude NumericPrelude 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 -> Boolnumeric-prelude NumericPrelude.Base 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 -> Boolnumhask NumHask.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 -> Boolnumhask NumHask.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 :: ListLike full item => (item -> Bool) -> full -> BoolListLike Data.ListLike True if any items satisfy the function
any :: ListLike full item => (item -> Bool) -> full -> BoolListLike Data.ListLike.Base True if any items satisfy the function