Skip to content

flatten

TurtleKitty edited this page May 12, 2019 · 2 revisions

flatten

This function flattens lists of lists.

(def xs '(1 2 3))
(def ys '(4 5))
(def zs (list xs (list (list ys)))) ; ((1 2 3) (((45))))

(flatten zs)   ; (1 2 3 4 5)
Clone this wiki locally