lconcat ( list -- result ) (original) (raw)

Vocabulary
lists.lazy

Inputs

list a list of lists

Outputs

result a list

Word description
Concatenates a list of lists together into one list.

See also
leach, foldl, lmap-lazy, ltake, lfilter, lappend-lazy, lfrom, lfrom-by, lcartesian-product, lcartesian-product*, lcartesian-map, lcartesian-map*, lmerge, lwhile, luntil

Definition

USING: kernel lists lists.lazy.private ;

IN: lists.lazy

: lconcat ( list -- result )
dup nil? [ drop nil ] [ uncons (lconcat) ] if ;