Add an alternate name for case->.
This commit is contained in:
parent
87a53159dd
commit
ca11c2e4fa
|
@ -14,8 +14,8 @@ TR missed opt: case-arrow.rkt 21:2 (+ min (/ (* (- max min) x) p)) -- all args f
|
|||
(define A (expt 7 5))
|
||||
(define x 42)
|
||||
|
||||
(: gen-random : (case-> (Integer Integer → Exact-Rational)
|
||||
(Float Float → Float)))
|
||||
(: gen-random : (case→ (Integer Integer → Exact-Rational)
|
||||
(Float Float → Float)))
|
||||
(define (gen-random min max)
|
||||
(set! x (modulo (* A x) p))
|
||||
(+ min (/ (* (- max min) x) p)))
|
||||
|
|
|
@ -18,7 +18,8 @@
|
|||
|
||||
(provide (rename-out [All ∀]
|
||||
[U Un]
|
||||
[-> →]
|
||||
[-> →]
|
||||
[case-> case→]
|
||||
[List Tuple]
|
||||
[Rec mu]
|
||||
[Parameterof Parameter]))
|
||||
|
|
Loading…
Reference in New Issue
Block a user