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: maximum
Type: Ord a => [a] -> a
Description: returns the maximum value from the list
Related: (<), (<=), (>), (>=), compare, max, min, minimum

Example 1

Input: maximum [3,2,6,4,1,2,3]

Output: 6

Example 2

Input: maximum "Hello"

Output: 'o'