Add in-flvector, in-fxvector to TR base environment
This commit is contained in:
parent
6791b322ec
commit
11bfdce685
|
@ -218,4 +218,9 @@
|
||||||
;; for `define-runtime-module-path`
|
;; for `define-runtime-module-path`
|
||||||
[(make-template-identifier 'combine-module-path 'racket/runtime-path)
|
[(make-template-identifier 'combine-module-path 'racket/runtime-path)
|
||||||
(-> -Variable-Reference -Module-Path -Resolved-Module-Path)]
|
(-> -Variable-Reference -Module-Path -Resolved-Module-Path)]
|
||||||
|
;; in-fxvector, in-flvector
|
||||||
|
[(make-template-identifier 'in-fxvector* 'racket/fixnum)
|
||||||
|
(-> -FxVector (-seq -Fixnum))]
|
||||||
|
[(make-template-identifier 'in-flvector* 'racket/flonum)
|
||||||
|
(-> -FlVector (-seq -Flonum))]
|
||||||
)
|
)
|
||||||
|
|
|
@ -1961,7 +1961,7 @@
|
||||||
-Void]
|
-Void]
|
||||||
[tc-e (place-message-allowed? 'msg) -Boolean]
|
[tc-e (place-message-allowed? 'msg) -Boolean]
|
||||||
|
|
||||||
;; fxvectors
|
;; fxvectors & flvectors
|
||||||
[tc-e (let ()
|
[tc-e (let ()
|
||||||
(define fx1 (fxvector 0 500 34))
|
(define fx1 (fxvector 0 500 34))
|
||||||
(define fx2 (make-fxvector 20 3))
|
(define fx2 (make-fxvector 20 3))
|
||||||
|
@ -1970,6 +1970,13 @@
|
||||||
(fxvector-length fx1)
|
(fxvector-length fx1)
|
||||||
(fxvector-copy fx2 0 5))
|
(fxvector-copy fx2 0 5))
|
||||||
-FxVector]
|
-FxVector]
|
||||||
|
[tc-e (let ()
|
||||||
|
(define s1 (in-flvector (flvector 1.0 2.0 3.0)))
|
||||||
|
(define f1 (sequence-ref s1 0))
|
||||||
|
(define s2 (in-fxvector (fxvector 1 2 3)))
|
||||||
|
(define f2 (sequence-ref s2 2))
|
||||||
|
(list f1 f2))
|
||||||
|
(-lst* -Flonum -Fixnum)]
|
||||||
|
|
||||||
;; for/hash, for*/hash - PR 14306
|
;; for/hash, for*/hash - PR 14306
|
||||||
[tc-e (for/hash: : (HashTable Symbol String)
|
[tc-e (for/hash: : (HashTable Symbol String)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user