Bugfix - reverse list

This commit is contained in:
Justin Ethier 2015-06-05 01:38:18 -04:00
parent 67e5da51a4
commit 41b14f14ea

View file

@ -174,7 +174,7 @@
(end (if (> (length opts) 1) (cadr opts) len)) (end (if (> (length opts) 1) (cadr opts) len))
(loop (lambda (i lst) (loop (lambda (i lst)
(if (= i end) (if (= i end)
lst (reverse lst)
(loop (+ i 1) (loop (+ i 1)
(cons (vector-ref vec i) lst)))))) (cons (vector-ref vec i) lst))))))
(loop start '()))) (loop start '())))