Remove redundant range definition
authorLuke Lau <luke_lau@icloud.com>
Fri, 2 Aug 2019 15:09:07 +0000 (16:09 +0100)
committerLuke Lau <luke_lau@icloud.com>
Fri, 2 Aug 2019 15:09:07 +0000 (16:09 +0100)
codegen.scm

index fb856a54a7da63314890bc6c739ce9cc03c69a01..10e005f8ad90e840aad396da4a0cdb5032163f6c 100644 (file)
     ('linux  (emit "mov $1, %rax"))) ; syscall 1 (write)
   (emit "syscall"))
 
-(define (range s n)
-  (if (= 0 n) '()
-      (append (range s (- n 1))
-             (list (+ s (- n 1))))))
-
 (define wordsize 8)
 
 (define (codegen-let bindings body si env)