Updated build-list and build-vector's types for fixnums.

This commit is contained in:
Vincent St-Amour 2010-06-30 14:34:13 -04:00
parent adf5c8c030
commit 1fe70704a2

View File

@ -20,7 +20,7 @@
(define-syntax-rule (indexing index-type)
(make-env
[build-list (-poly (a) (index-type (-Nat . -> . a) . -> . (-lst a)))]
[build-list (-poly (a) (index-type (-NonnegativeFixnum . -> . a) . -> . (-lst a)))]
[make-list (-poly (a) (index-type a . -> . (-lst a)))]
[string-ref (-> -String index-type -Char)]
@ -132,7 +132,7 @@
[vector-ref (-poly (a) ((-vec a) index-type . -> . a))]
[unsafe-vector-ref (-poly (a) ((-vec a) index-type . -> . a))]
[unsafe-vector*-ref (-poly (a) ((-vec a) index-type . -> . a))]
[build-vector (-poly (a) (index-type (-Nat . -> . a) . -> . (-vec a)))]
[build-vector (-poly (a) (index-type (-NonnegativeFixnum . -> . a) . -> . (-vec a)))]
[vector-set! (-poly (a) (-> (-vec a) index-type a -Void))]
[unsafe-vector-set! (-poly (a) (-> (-vec a) index-type a -Void))]
[unsafe-vector*-set! (-poly (a) (-> (-vec a) index-type a -Void))]