This commit is contained in:
Sam Tobin-Hochstadt 2008-06-24 11:43:06 -04:00
parent e4a0dc82b3
commit d7cf0a10c0

View 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)))