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.
product :: (Foldable t, Functor t, Num (t a), Fractional a, Reifies s W) => BVar s (t a) -> BVar s abackprop Prelude.Backprop.Num product, but with Num constraints instead of Backprop constraints.
product :: (Foldable t, Num a) => t a -> acabal-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 *
product :: (Foldable t, Num a) => t a -> aihaskell 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 *
product :: (Foldable t, Num a) => t a -> aincipit-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 *
product :: (Generator c, Num (Elem c)) => c -> Elem creducers Data.Generator.Combinators Efficiently take the product of every member of a Generator
reduceWith getProduct
product :: forall (m :: Type -> Type) a . (Monad m, Num a, Eq a) => Fold m a astreamly-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
product :: forall (m :: Type -> Type) a . (Monad m, Num a, Eq a) => Fold m a astreamly-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
product :: (Foldable t, Num a) => t a -> acalligraphy 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 *
product :: (Foldable t, Num a) => t a -> aclash-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 *
product :: (C sh, Floating a) => Vector sh a -> acomfort-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_)))