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, Num a) => t a -> alistsafe Data.List.Safe 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 :: [LogFloat] -> LogFloatlogfloat Data.Number.LogFloat O(n). Compute the product of a finite list of LogFloats, being careful to avoid numerical error due to loss of precision. That is, the following equivalence holds (modulo underflow and all that):
logFloat . product == product . map logFloat
Since: 0.13product :: (Foldable t, Num a) => t a -> averset Verset 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 -> axmonad-contrib XMonad.Config.Prime 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 -> axmonad-contrib XMonad.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 *
type
ProductCode a = Head Code agenerics-sop Generics.SOP Direct access to the part of the code that is relevant for a product type.
type
ProductCode a = Head Code agenerics-sop Generics.SOP.Universe Direct access to the part of the code that is relevant for a product type.
data
ProductSym0 (a1 :: TyFun t a a)singletons-base Data.Foldable.Singletons No documentation available.
type family
ProductSym1 (a6989586621680407101 :: t a) :: asingletons-base Data.Foldable.Singletons No documentation available.
data
ProductSym0 (a1 :: TyFun t a a)singletons-base Data.List.Singletons No documentation available.