We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f51dca commit 5a5b9ceCopy full SHA for 5a5b9ce
main.rkt
@@ -105,15 +105,15 @@
105
(when (> step (length lst))
106
(error "step has to be equal to or smaller than length of the list"))
107
108
- (cond [(= step (length lst))
109
- (list lst)]
110
- [(let recur ([lst lst]
111
- [len (length lst)])
+ (cond ([(= step (length lst))
+ (list lst)]
+ [(let recur ([lst lst]
+ [len (length lst)])
112
(if (>= size len)
113
(if (empty? lst) empty (list lst))
114
(cons (take lst size)
115
(recur (drop lst step)
116
- (- len step)))))]))
+ (- len step)))))])))
117
118
(define (scanl proc lst)
119
(foldl
0 commit comments