Day 8: Fix typo.
This commit is contained in:
parent
1df4ec737e
commit
c3f9b912f3
|
@ -13,7 +13,7 @@
|
||||||
;; with the final list possibly being smaller
|
;; with the final list possibly being smaller
|
||||||
;; e.g. '(1 2 3 4 5) 2 => '((1 2) (3 4) (5))
|
;; e.g. '(1 2 3 4 5) 2 => '((1 2) (3 4) (5))
|
||||||
(define (partition-into lst size)
|
(define (partition-into lst size)
|
||||||
(if (< (length lst) size) (list lst)
|
(if (< (length lst) size) lst
|
||||||
(cons (take lst size)
|
(cons (take lst size)
|
||||||
(partition-into (drop lst size) size))))
|
(partition-into (drop lst size) size))))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue