Hoogle Search
Within LTS Haskell 24.32 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
conduit Data.Conduit.Combinators Get the product of all elements in the chunked stream. Subject to fusion
product' :: (Foldable f, Num a) => f a -> aextra Data.Foldable.Extra productOn' :: (Foldable f, Num b) => (a -> b) -> f a -> bextra Data.Foldable.Extra A generalization of productOn' to Foldable instances.
-
extra Data.List.Extra A strict version of product.
product' [1, 2, 4] == 8
productOn' :: Num b => (a -> b) -> [a] -> bextra Data.List.Extra A strict version of product, using a custom valuation function.
productOn' read ["1", "2", "4"] == 8
-
extra Extra A strict version of product.
product' [1, 2, 4] == 8
productOn' :: Num b => (a -> b) -> [a] -> bextra Extra A strict version of product, using a custom valuation function.
productOn' read ["1", "2", "4"] == 8
productOf :: forall k a (is :: IxList) s . (Is k A_Fold, Num a) => Optic' k is s a -> s -> aoptics-core Optics.Fold Calculate the Product of every number targeted by a Fold.
>>> productOf each (4,5) 20 >>> productOf folded [1,2,3,4,5] 120
product ≡ productOf folded
This operation may be more strict than you would expect. If you want a lazier version use \o -> getProduct . foldMapOf o Product.productOf :: Num a => Getting (Endo (Endo a)) s a -> s -> adiagrams-lib Diagrams.Prelude Calculate the Product of every number targeted by a Fold.
>>> productOf both (4,5) 20 >>> productOf folded [1,2,3,4,5] 120
product ≡ productOf folded
This operation may be more strict than you would expect. If you want a lazier version use ala Product . foldMapOfproductOf :: Num a => Getter s a -> s -> a productOf :: Num a => Fold s a -> s -> a productOf :: Num a => Lens' s a -> s -> a productOf :: Num a => Iso' s a -> s -> a productOf :: Num a => Traversal' s a -> s -> a productOf :: Num a => Prism' s a -> s -> a
product3With :: (a -> b -> c -> d) -> [[a]] -> [[b]] -> [[c]] -> [[d]]leancheck Test.LeanCheck Like productWith, but over 3 lists of tiers.