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
Operator: (:)
Type: a -> [a] -> [a]
Priority: 5
Description: inserts the first argument to a list passed as the second argument
Related: (++)
Keywords: list insertion

Example 1

Input: 1 : [3,4,5]

Output: [1,3,4,5]

Example 2

Input: 'a':"efg"

Output: "aefg"