adding missing defn for append

This commit is contained in:
Danny Yoo 2011-03-14 18:58:39 -04:00
parent 77f90ba95c
commit 7ce499d2b3
2 changed files with 7 additions and 0 deletions

View File

@ -116,6 +116,7 @@
symbol->string
string-append
string-length
(my-cons cons)
(my-list list)

View File

@ -37,6 +37,12 @@
(add1 (length (cdr l)))))
(define (append l1 l2)
(if (null? l1)
l2
(cons (car l1) (append (cdr l1) l2))))
(define vector-copy
(lambda (v)
(let ((length (vector-length v)))