(rontolisp) docs
← Seqs

flatten

(flatten x)

Answers the members of the nested sequential collections of x (lists, vectors and seqs) that are no sequential collection, depth first, as a lazy seq -- the oracle's (filter (complement sequential?) (rest (tree-seq sequential? seq x))). A map or set stays one member; x that is no sequential collection answers (). Also names a function value.