Add an alternate name for case->.
original commit: ca11c2e4fa24979e81e6ea992ac38ba70d841bba
This commit is contained in:
parent
7d610b014d
commit
07c1349e2a
|
@ -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