add test
svn: r11009 original commit: 14b180d5a74018c0b9a2b0c2805045e9f910958a
This commit is contained in:
parent
7beae186ec
commit
40dd66120c
|
@ -1,5 +1,20 @@
|
|||
#lang typed-scheme
|
||||
|
||||
(require typed-scheme/private/extra-procs)
|
||||
|
||||
(: f (All (A ...) (All (B ...) (A ... A -> Integer))))
|
||||
|
||||
(define (f . xs) 5)
|
||||
(define (f . xs) 5)
|
||||
|
||||
(: map-with-funcs
|
||||
(All (A ...)
|
||||
(All (B ...)
|
||||
((B ... B -> A) ... A ->
|
||||
(B ... B -> (values A ... A))))))
|
||||
(define (map-with-funcs . fs)
|
||||
(lambda as
|
||||
(apply values* (map (lambda: ([f : (B ... B -> A)])
|
||||
(apply f as))
|
||||
fs))))
|
||||
|
||||
(inst map-with-funcs Integer Integer Integer Integer)
|
Loading…
Reference in New Issue
Block a user