Skip to content

Commit 5a5b9ce

Browse files
fix: exclude main.rkt from this PR
1 parent 7f51dca commit 5a5b9ce

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

main.rkt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,15 +105,15 @@
105105
(when (> step (length lst))
106106
(error "step has to be equal to or smaller than length of the list"))
107107

108-
(cond [(= step (length lst))
109-
(list lst)]
110-
[(let recur ([lst lst]
111-
[len (length lst)])
108+
(cond ([(= step (length lst))
109+
(list lst)]
110+
[(let recur ([lst lst]
111+
[len (length lst)])
112112
(if (>= size len)
113113
(if (empty? lst) empty (list lst))
114114
(cons (take lst size)
115115
(recur (drop lst step)
116-
(- len step)))))]))
116+
(- len step)))))])))
117117

118118
(define (scanl proc lst)
119119
(foldl

0 commit comments

Comments
 (0)