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: | init |
Type: | [a] -> [a] |
Description: | it accepts a list and returns the list without its last item |
Related: | drop, dropWhile, head, last, tail |
Keywords: | list construction |
Input: init [1,2,3]
Output: [1,2]
Input: init "Hello"
Output: "Hell"