Added (vector)

This commit is contained in:
Justin Ethier 2015-06-01 21:53:13 -04:00
parent fec8262285
commit ae3bdfbe0a
2 changed files with 3 additions and 1 deletions

View file

@ -435,7 +435,7 @@
((eq? p 'list->string) "Cyc_list2string")
((eq? p 'string->list) "string2list")
((eq? p 'make-vector) "make_vector")
((eq? p 'list->vector) "list_vector")
((eq? p 'list->vector) "list2vector")
((eq? p 'string-append) "Cyc_string_append")
((eq? p 'string-cmp) "Cyc_string_cmp")
((eq? p 'string->symbol) "Cyc_string2symbol")

View file

@ -39,6 +39,7 @@
symbol=?
Cyc-obj=?
make-string
vector
error
raise
raise-continuable
@ -118,6 +119,7 @@
(car lst)
(foldl (lambda (a b) (append-2 b a)) (car lst) (cdr lst)))))
(define (list . objs) objs)
(define (vector . objs) (list->vector objs))
(define (make-list k . fill)
(letrec ((x (if (null? fill)
#f