[racket] Is there a name for: (lambda (x) (x)) ?

From: Tim Brown (tim.brown at cityc.co.uk)
Date: Thu Sep 23 08:35:52 EDT 2010

Folks,

Am I missing something really basic here?

I have a list of thunks. I want to iterate over the results of these
using a high-order function ... map, for-each, filter (et al).

The only way I can find to do it is:

(map (lambda (x) (x))
   (list
     (lambda () 1)
     (lambda () 2)
     (lambda () 3))) -> '(1 2 3)

Is there a standard name for the (lambda (x) (x)) in racket?

Or do I have to write my own (define (call x) (x))?

Tim

-- 
Tim Brown <tim.brown at cityc.co.uk>  | City Computing Limited            |
T: +44 20 8770 2110                | City House, Sutton Park Road      |
F: +44 20 8770 2130                | Sutton, Surrey, SM1 2AE, GB       |
-----------------------------------------------------------------------|
BEAUTY:  What's in your eye when you have a bee in your hand           |
-----------------------------------------------------------------------'
City Computing Limited registered in London No. 1767817.
Registered Office: City House, Sutton Park Road, Sutton, Surrey, SM1 2AE
VAT number 372 8290 34.


Posted on the users mailing list.