Sha256: 36306edfbf9ad537be57f529d7ecdf9c752cd653f98a89785bae18be15f525a1

Contents?: true

Size: 212 Bytes

Versions: 143

Compression:

Stored size: 212 Bytes

Contents

(ns series)

(defn slices [string n]
  (if (zero? n)
    [""]
    (loop [string string, acc []]
      (if (< (count string) n)
        acc
        (recur (rest string) (conj acc (apply str (take n string))))))))

Version data entries

143 entries across 143 versions & 1 rubygems

Version Path
trackler-2.2.1.98 tracks/clojure/exercises/series/src/example.clj
trackler-2.2.1.97 tracks/clojure/exercises/series/src/example.clj
trackler-2.2.1.96 tracks/clojure/exercises/series/src/example.clj
trackler-2.2.1.95 tracks/clojure/exercises/series/src/example.clj
trackler-2.2.1.94 tracks/clojure/exercises/series/src/example.clj
trackler-2.2.1.93 tracks/clojure/exercises/series/src/example.clj
trackler-2.2.1.92 tracks/clojure/exercises/series/src/example.clj
trackler-2.2.1.91 tracks/clojure/exercises/series/src/example.clj
trackler-2.2.1.90 tracks/clojure/exercises/series/src/example.clj
trackler-2.2.1.89 tracks/clojure/exercises/series/src/example.clj
trackler-2.2.1.88 tracks/clojure/exercises/series/src/example.clj
trackler-2.2.1.87 tracks/clojure/exercises/series/src/example.clj
trackler-2.2.1.86 tracks/clojure/exercises/series/src/example.clj
trackler-2.2.1.85 tracks/clojure/exercises/series/src/example.clj
trackler-2.2.1.84 tracks/clojure/exercises/series/src/example.clj
trackler-2.2.1.83 tracks/clojure/exercises/series/src/example.clj
trackler-2.2.1.82 tracks/clojure/exercises/series/src/example.clj
trackler-2.2.1.81 tracks/clojure/exercises/series/src/example.clj
trackler-2.2.1.80 tracks/clojure/exercises/series/src/example.clj
trackler-2.2.1.79 tracks/clojure/exercises/series/src/example.clj