new test
This commit is contained in:
parent
e4a0dc82b3
commit
d7cf0a10c0
11
collects/tests/typed-scheme/succeed/ann-map-funcs.ss
Normal file
11
collects/tests/typed-scheme/succeed/ann-map-funcs.ss
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
#lang typed-scheme
|
||||||
|
|
||||||
|
(: map-with-funcs (All (b a ...) ((a ... a -> b) * -> (a ... a -> (Listof b)))))
|
||||||
|
|
||||||
|
(define (map-with-funcs . fs)
|
||||||
|
(lambda as
|
||||||
|
(map (lambda: ([f : (a ... a -> b)])
|
||||||
|
(apply f as))
|
||||||
|
fs)))
|
||||||
|
|
||||||
|
(ann (map-with-funcs + - * /) (Integer Integer * -> (Listof Number)))
|
Loading…
Reference in New Issue
Block a user