| ZVON > References > Haskell reference |
| Intro / Search / ZVON |
| | Indexes | Syntax | >> Prelude << | Ratio | Complex | Numeric | Ix | Array | List | Maybe | Char | Monad | IO | Directory | System | Time | Locale | CPUTime | Random |
| Module: | Prelude |
|---|---|
| Function: | sum |
| Type: | Num a => [a] -> a |
| Description: | computes a sum of all elements in the list |
| Related: | (+) |
| Keywords: | addition, list calculation, sum |
Input: sum [1,2,3,4]
Output: 10