Add support for creating contracts of heterogenous vectors
This commit is contained in:
parent
f090698542
commit
9f453676d1
|
@ -190,6 +190,9 @@
|
||||||
[(Vector: t)
|
[(Vector: t)
|
||||||
(when flat? (exit (fail)))
|
(when flat? (exit (fail)))
|
||||||
#`(vectorof #,(t->c t))]
|
#`(vectorof #,(t->c t))]
|
||||||
|
[(HeterogenousVector: ts)
|
||||||
|
(when flat? (exit (fail)))
|
||||||
|
#`(vector/c #,@(map t->c ts))]
|
||||||
[(Box: t)
|
[(Box: t)
|
||||||
(when flat? (exit (fail)))
|
(when flat? (exit (fail)))
|
||||||
#`(box/c #,(t->c t))]
|
#`(box/c #,(t->c t))]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user