Skip to content

Commit cbd4c4c

Browse files
committed
Add types for hash-union{!,}.
Closes #1025.
1 parent 943258d commit cbd4c4c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

typed-racket-lib/typed-racket/base-env/base-env.rkt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
(except-in racket -> ->* one-of/c class)
88
racket/unsafe/ops
99
racket/unsafe/undefined
10+
racket/hash
1011
(only-in racket/extflonum floating-point-bytes->extfl extfl->floating-point-bytes)
1112
;(only-in rnrs/lists-6 fold-left)
1213
'#%paramz
@@ -1088,6 +1089,10 @@
10881089
[make-immutable-custom-hash (->opt (-> Univ Univ Univ) (-> Univ -Nat) [(-> Univ -Nat)] Univ)]
10891090
[make-weak-custom-hash (->opt (-> Univ Univ Univ) (-> Univ -Nat) [(-> Univ -Nat)] Univ)]
10901091

1092+
1093+
[hash-union (-poly (a b) (->* (list (-Immutable-HT a b)) (-HT a b) (-Immutable-HT a b)))]
1094+
[hash-union! (-poly (a b) (->* (list (-Mutable-HT a b)) (-HT a b) -Void))]
1095+
10911096
;; Section 4.15 (Sequences and Streams)
10921097
[sequence? (make-pred-ty -SequenceTop)]
10931098
[in-sequences

0 commit comments

Comments
 (0)