flatten

functionsince v0.0-927 clojure.core/flattenEdit
(flatten x)

Details:

Takes any nested combination of sequential things (lists, vectors, etc.) and returns their contents as a single, flat sequence.

(flatten nil) returns nil.


Source docstring:
Takes any nested combination of sequential things (lists, vectors,
etc.) and returns their contents as a single, flat sequence.
(flatten nil) returns nil.
Source code @ clojurescript:src/main/cljs/cljs/core.cljs
(defn flatten
  [x]
  (filter #(not (sequential? %))
          (rest (tree-seq sequential? seq x))))