Sha256: 5e5f55b3c57964c53b0da31f12192487d2febde569b223c20ee2ef36ff2c9a04

Contents?: true

Size: 182 Bytes

Versions: 202

Compression:

Stored size: 182 Bytes

Contents

(ns flatten-array
  (:refer-clojure :exclude [flatten]))

(defn flatten [s]
  (->> s
       (tree-seq sequential? seq)
       rest
       (remove sequential?)
       (remove nil?)))

Version data entries

202 entries across 202 versions & 1 rubygems

Version Path
trackler-2.1.0.41 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.1.0.40 tracks/clojure/exercises/flatten-array/src/example.clj