| 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: | last |
| Type: | [a] -> a |
| Description: | returns the last item of a list |
| Related: | drop, dropWhile, head, init, tail |
| Keywords: | list item |
Input: last [1,2,3]
Output: 3
Input: last "Hello"
Output: 'o'