Hoogle Search

Within LTS Haskell 24.6 (ghc-9.10.2)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. product :: (Foldable t, Functor t, Num (t a), Fractional a, Reifies s W) => BVar s (t a) -> BVar s a

    backprop Prelude.Backprop.Num

    product, but with Num constraints instead of Backprop constraints.

  2. product :: (Foldable t, Num a) => t a -> a

    cabal-install-solver Distribution.Solver.Compat.Prelude

    The product function computes the product of the numbers of a structure.

    Examples

    Basic usage:
    >>> product []
    1
    
    >>> product [42]
    42
    
    >>> product [1..10]
    3628800
    
    >>> product [4.1, 2.0, 1.7]
    13.939999999999998
    
    >>> product [1..]
    * Hangs forever *
    

  3. product :: (Foldable t, Num a) => t a -> a

    ihaskell IHaskellPrelude

    The product function computes the product of the numbers of a structure.

    Examples

    Basic usage:
    >>> product []
    1
    
    >>> product [42]
    42
    
    >>> product [1..10]
    3628800
    
    >>> product [4.1, 2.0, 1.7]
    13.939999999999998
    
    >>> product [1..]
    * Hangs forever *
    

  4. product :: (Foldable t, Num a) => t a -> a

    incipit-base Incipit.Foldable

    The product function computes the product of the numbers of a structure.

    Examples

    Basic usage:
    >>> product []
    1
    
    >>> product [42]
    42
    
    >>> product [1..10]
    3628800
    
    >>> product [4.1, 2.0, 1.7]
    13.939999999999998
    
    >>> product [1..]
    * Hangs forever *
    

  5. product :: (Generator c, Num (Elem c)) => c -> Elem c

    reducers Data.Generator.Combinators

    Efficiently take the product of every member of a Generator

    reduceWith getProduct
    

  6. product :: forall (m :: Type -> Type) a . (Monad m, Num a, Eq a) => Fold m a a

    streamly-core Streamly.Data.Fold

    Determine the product of all elements of a stream of numbers. Returns multiplicative identity (1) when the stream is empty. The fold terminates when it encounters (0) in its input. Same as the following but terminates on multiplication by 0:

    >>> product = fmap Data.Monoid.getProduct $ Fold.foldMap Data.Monoid.Product
    

  7. product :: forall (m :: Type -> Type) a . (Monad m, Num a, Eq a) => Fold m a a

    streamly-core Streamly.Internal.Data.Fold

    Determine the product of all elements of a stream of numbers. Returns multiplicative identity (1) when the stream is empty. The fold terminates when it encounters (0) in its input. Same as the following but terminates on multiplication by 0:

    >>> product = fmap Data.Monoid.getProduct $ Fold.foldMap Data.Monoid.Product
    

  8. product :: (Foldable t, Num a) => t a -> a

    calligraphy Calligraphy.Prelude

    The product function computes the product of the numbers of a structure.

    Examples

    Basic usage:
    >>> product []
    1
    
    >>> product [42]
    42
    
    >>> product [1..10]
    3628800
    
    >>> product [4.1, 2.0, 1.7]
    13.939999999999998
    
    >>> product [1..]
    * Hangs forever *
    

  9. product :: (Foldable t, Num a) => t a -> a

    clash-prelude Clash.HaskellPrelude

    The product function computes the product of the numbers of a structure.

    Examples

    Basic usage:
    >>> product []
    1
    
    >>> product [42]
    42
    
    >>> product [1..10]
    3628800
    
    >>> product [4.1, 2.0, 1.7]
    13.939999999999998
    
    >>> product [1..]
    * Hangs forever *
    

  10. product :: (C sh, Floating a) => Vector sh a -> a

    comfort-blas Numeric.BLAS.Vector

    QC.forAll (QC.choose (0,10)) $ \dim -> QC.forAll (genVector (shapeInt dim) (genNumber 3)) $ \xs -> approx 1e-2 (Vector.product xs) (List.product (Vector.toList (xs :: Vector Number_)))
    

Page 14 of many | Previous | Next