| ZVON > > Haskell reference |
| Intro / Search / ZVON |
| | Indexes | Syntax | >> Prelude << | Ratio | Complex | Numeric | Ix | Array | List | Maybe | Char | IO | Directory | System | Time | Locale | CPUTime | Random |
| Module: | Prelude |
|---|---|
| Function: | head |
| Type: | [a] -> a |
| Description: | returns the first item of a list |
| Related: | init, last, tail |
| Keywords: | list item |
Input: head [1,2,3]
Output: 1
Input: head "Hello"
Output: 'H'