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. newtype Any

    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}
    

  2. Any :: Bool -> Any

    verset Verset

    No documentation available.

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

    base 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 *
    

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

    base 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 *
    

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

    base 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 *
    

  6. any :: (a -> Bool) -> [a] -> Bool

    base 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 *
    

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

    bytestring Data.ByteString

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

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

    bytestring Data.ByteString.Char8

    Applied to a predicate and a ByteString, any determines if any element of the ByteString satisfies the predicate.

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

    bytestring Data.ByteString.Lazy

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

  10. any :: (Char -> Bool) -> ByteString -> Bool

    bytestring Data.ByteString.Lazy.Char8

    Applied to a predicate and a ByteString, any determines if any element of the ByteString satisfies the predicate.

Page 9 of many | Previous | Next