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.2.1.78 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.77 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.76 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.75 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.74 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.73 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.72 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.71 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.70 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.69 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.68 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.67 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.66 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.65 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.64 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.63 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.62 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.61 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.60 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.59 tracks/clojure/exercises/flatten-array/src/example.clj