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: concatenates two lists
Related: (:), concat
Keywords: concatenate, string

Example 1

Input: [1,2,3]++[3,2]

Output: [1,2,3,3,2]

Example 2

Input: "Hello"++", "++"world"++"!"

Output: "Hello, world!"

Example 3

Input: reverse([1,3,5]++[2,4,6])

Output: [6,4,2,5,3,1]