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: tail
Type: [a] -> [a]
Description: it accepts a list and returns the list without its first item
Related: drop, dropWhile, head, init, last
Keywords: list construction

Example 1

Input: tail [1,2,3]

Output: [2,3]

Example 2

Input: tail "Hello"

Output: "ello"