Cleanup partition refactor

Remove an unnecessary let clause.
This commit is contained in:
Scott Olsen 2020-02-16 16:00:04 -05:00
parent d3f99487db
commit 6d1ddf41cf

View File

@ -377,7 +377,6 @@ It will create a copy. If you want to avoid that, consider using [`endo-filter`]
```")
(sig partition (Fn [(Ref (Array a) b) Int] (Array (Array a))))
(defn partition [arr n]
(let [len (+ (mod (Array.length arr) n) (/ (Array.length arr) n))]
(let-do [x 0
y 0
a []]
@ -390,5 +389,5 @@ It will create a copy. If you want to avoid that, consider using [`endo-filter`]
(set! y (Array.length arr)))
(set! a (push-back a (Array.slice arr x y)))
(set! x y)))
a)))
a))
)