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.58 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.57 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.56 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.55 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.54 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.53 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.52 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.51 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.50 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.49 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.48 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.47 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.46 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.45 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.44 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.43 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.42 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.41 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.40 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.39 tracks/clojure/exercises/flatten-array/src/example.clj