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.180 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.179 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.178 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.177 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.176 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.175 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.174 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.173 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.172 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.171 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.170 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.169 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.167 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.166 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.165 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.164 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.163 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.162 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.161 tracks/clojure/exercises/flatten-array/src/example.clj
trackler-2.2.1.160 tracks/clojure/exercises/flatten-array/src/example.clj