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.159 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.158 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.157 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.156 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.155 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.154 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.153 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.152 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.151 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.150 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.149 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.148 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.147 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.146 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.145 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.144 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.143 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.142 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.141 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.140 tracks/clojure/exercises/flatten-array/src/example.clj