Hello,Does that have a name in wide use? It can be used it to map over a bunch of procedures, calling each with 'x'. I.e.:
(define (arg x)
(lambda (f)
(f x)))
(map (arg pi) (list sin cos tan))
Just curious if the idiom has a name. Note that it's also:
(cut <> x)
A variable arity version as a macro:
(define-syntax args
(syntax-rules ()
( (args x ...)
(lambda (f)
(f x ...)) )))
Example:
> (map (args 1 2 3) (list + - /))
(6 -4 1/6)
Ed
