ZVON > References > Haskell reference
| Indexes | Syntax | >> Prelude << | Ratio | Complex | Numeric | Ix | Array | List | Maybe | Char | Monad | IO | Directory | System | Time | Locale | CPUTime | Random

Module: Prelude
Function: product
Type: Num a => [a] -> a
Description: computes a product of all elements in the list
Related: (*)
Keywords: list calculation, multiplication

Example 1

Input: product [1,2,3,4]

Output: 24