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.
product :: (Monad m, Num a) => Producer a m () -> m apipes Pipes.Prelude Compute the product of the elements of a Producer
-
foldl Control.Foldl Computes the product of all elements
product :: forall a (f :: Type -> Type) . (Num a, Foldable f) => T f a -> anon-empty Data.NonEmpty product does not need a one for initialization
product :: (MonoFoldable mono, Num (Element mono)) => mono -> Element monomono-traversable Data.MonoTraversable.Unprefixed Synonym for oproduct
product :: (Foldable t, Num a) => t a -> ario RIO.List 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 -> ario RIO.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 :: (Vector v a, Num a) => v a -> ario RIO.Vector No documentation available.
product :: Num a => Vector a -> ario RIO.Vector.Boxed No documentation available.
product :: (Storable a, Num a) => Vector a -> ario RIO.Vector.Storable No documentation available.
product :: (Unbox a, Num a) => Vector a -> ario RIO.Vector.Unboxed No documentation available.