Make type of make-vector more precise.
Before that, ((inst make-vector Natural) 10) would return a (Vectorof Integer) which is bad. Thanks to Alexander Knauth for the suggestion!
This commit is contained in:
parent
0df8f39914
commit
aab724de35
|
@ -258,7 +258,7 @@
|
|||
[unsafe-vector-set! (-poly (a) (-> (-vec a) index-type a -Void))]
|
||||
[unsafe-vector*-set! (-poly (a) (-> (-vec a) index-type a -Void))]
|
||||
[vector-copy! (-poly (a) ((-vec a) index-type (-vec a) [index-type index-type] . ->opt . -Void))]
|
||||
[make-vector (-poly (a) (cl-> [(index-type) (-vec (Un -Integer a))]
|
||||
[make-vector (-poly (a) (cl-> [(index-type) (-vec (Un -Zero a))]
|
||||
[(index-type a) (-vec a)]))]
|
||||
|
||||
;; flvector ops
|
||||
|
|
Loading…
Reference in New Issue
Block a user