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.
-
numeric-prelude NumericPrelude.Numeric No documentation available.
product :: (Multiplicative a, Foldable f) => f a -> anumhask NumHask Compute the product of a Foldable.
>>> product [1..5] 120
product :: (Multiplicative a, Foldable f) => f a -> anumhask NumHask.Algebra.Multiplicative Compute the product of a Foldable.
>>> product [1..5] 120
product :: (Num a, ListLike full a) => full -> aListLike Data.ListLike The product of the list
product :: (Num a, ListLike full a) => full -> aListLike Data.ListLike.Utils The product of the list
product :: (Foldable f, Num a) => f a -> abasic-prelude BasicPrelude Compute the product of a finite list of numbers.
product :: (Foldable t, Num a) => t a -> aghc-lib-parser GHC.Prelude.Basic 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 *
-
prelude-compat Data.List2010 No documentation available.
product :: (Foldable t, Num a) => t a -> aprelude-compat Prelude2010 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 :: Num a => Vector a -> arebase Rebase.Data.Vector No documentation available.