Lisp_Objects and Environments are now bucket allocated

This commit is contained in:
Felix Brendel
2019-10-21 22:39:06 +02:00
parent 4002652d05
commit 0a7f05a20d
13 changed files with 4412 additions and 645 deletions
+3 -3
View File
@@ -375,17 +375,17 @@ by the key =from= and ends with the number defined in =to=."
(when (< from to)
(pair from (range :from (+ 1 from) :to to))))
(define (range-while (:from 0) to)
(define (range-while (:from 0) :to)
:doc "Returns a sequence of numbers starting with the number defined
by the key 'from' and ends with the number defined in 'to'."
(define result (list (copy from)))
(define head result)
(mutate from (increment from))
(set! from (increment from))
(while (< from to)
(begin
(mutate head (pair (first head) (pair (copy from) nil)))
(define head (rest head))
(mutate from (increment from))))
(set! from (increment from))))
result)
(define (map fun seq)