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.

  1. any :: (a -> Bool) -> Fold a Bool

    foldl Control.Foldl

    (any predicate) returns True if any element satisfies the predicate, False otherwise

  2. any :: (Word8 -> Bool) -> Fold ByteString Bool

    foldl Control.Foldl.ByteString

    (any predicate) returns True if any byte satisfies the predicate, False otherwise

  3. any :: (Char -> Bool) -> Fold Text Bool

    foldl Control.Foldl.Text

    (any predicate) returns True if any character satisfies the predicate, False otherwise

  4. any :: (Char -> Bool) -> ShortText -> Bool

    text-short Data.Text.Short

    Test whether any code points in ShortText satisfy a predicate.

    >>> any (> 'c') "abcdabcd"
    True
    
    >>> any (const True) ""
    False
    
    >>> any (== 'c') "abdabd"
    False
    
    any p t == not (all (not . p) t)
    

  5. any :: (C a, ByteSource source) => source a

    data-accessor Data.Accessor.BinaryRead

    No documentation available.

  6. any :: (a -> Bool) -> InputStream a -> IO Bool

    io-streams System.IO.Streams.Combinators

    any predicate stream returns True if any element in stream matches the predicate. any consumes as few elements as possible, ending consumption if an element satisfies the predicate.

    ghci> is <- Streams.fromList [1, 2, 3]
    ghci> Streams.any (> 0) is    -- Consumes one element
    True
    ghci> Streams.read is
    Just 2
    ghci> Streams.any even is     -- Only 3 remains
    False
    

  7. any :: MonoFoldable mono => (Element mono -> Bool) -> mono -> Bool

    mono-traversable Data.MonoTraversable.Unprefixed

    Synonym for oany

  8. any :: (Word8 -> Bool) -> ByteString -> Bool

    rio RIO.ByteString

    O(n) Applied to a predicate and a ByteString, any determines if any element of the ByteString satisfies the predicate.

  9. any :: (Word8 -> Bool) -> ByteString -> Bool

    rio RIO.ByteString.Lazy

    O(n) Applied to a predicate and a ByteString, any determines if any element of the ByteString satisfies the predicate.

  10. any :: Foldable t => (a -> Bool) -> t a -> Bool

    rio RIO.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 *
    

Page 11 of many | Previous | Next