Name

flatten — Flattens List

Synopsis

list flatten ( list<list> LIST );
 

Parameters

list<list> LIST

Return

list

Description

Gets a list of lists LIST and creates a single list that is the concatenation of those lists in LIST.

Usage

  flatten ([ [1, 2], [3, 4] ]) -> [1, 2, 3, 4]
  flatten ([ [1, 2], [6, 7], [3, 4] ]) -> [1, 2, 6, 7, 3, 4]