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

2010-09-28 Thread Guillaume Marceau
If you like symbol soup as much as I do: (require (rename-in srfi/26 [cut //])) (map (// ) (list (lambda () 1) (lambda () 2) (lambda () 3))) _ For list-related administrative tasks:

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

2010-09-26 Thread Eric Hanchrow
-lang.org [mailto:users-boun...@racket-lang.org] On Behalf Of David Van Horn Sent: 23 September 2010 17:19 To: users@racket-lang.org Subject: Re: [racket] Is there a name for: (lambda (x) (x)) ? On 9/23/10 11:02 AM, Jos Koot wrote: I often wondered why -identity- is not included in the exports

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

2010-09-23 Thread Tim Brown
) (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.br...@cityc.co.uk | City Computing Limited| T: +44 20 8770 2110| City House, Sutton Park Road | F: +44 20

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

2010-09-23 Thread Noel Welsh
On Thu, Sep 23, 2010 at 1:35 PM, Tim Brown tim.br...@cityc.co.uk wrote: Is there a standard name for the (lambda (x) (x)) in racket? Not that I know of. N. _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

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

2010-09-23 Thread Robby Findler
() 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.br...@cityc.co.uk  | City Computing Limited            | T: +44 20 8770 2110                | City House, Sutton Park

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

2010-09-23 Thread Robby Findler
I think you give us too much credit. :) On Thu, Sep 23, 2010 at 9:27 AM, Tim Brown tim.br...@cityc.co.uk wrote: On 23/09/10 14:23, Robby Findler wrote: I just write (λ (t) (t)) when it happens to me. It doesn't really seem like it needs a separate name (but maybe I'm in a bit too deep).

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

2010-09-23 Thread Jos Koot
: users-boun...@racket-lang.org [mailto:users-boun...@racket-lang.org] On Behalf Of Robby Findler Sent: 23 September 2010 16:44 To: Tim Brown Cc: Racket Users Subject: Re: [racket] Is there a name for: (lambda (x) (x)) ? I think you give us too much credit. :) On Thu, Sep 23, 2010 at 9:27 AM

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

2010-09-23 Thread David Van Horn
On 9/23/10 11:02 AM, Jos Koot wrote: I often wondered why -identity- is not included in the exports of racket/base. But which functions would we choose? (lambda (x) x) or (lambda x (apply values x)) which can simply be wrtitten as values So -values- may be the identity you are looking for. Jos

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

2010-09-23 Thread Justin Zamora
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

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

2010-09-23 Thread Joe Marshall
On Thu, Sep 23, 2010 at 5:35 AM, Tim Brown tim.br...@cityc.co.uk wrote: Is there a standard name for the (lambda (x) (x)) in racket? In Common Lisp, the standard name for this is `funcall' -- ~jrm _ For list-related administrative tasks

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

2010-09-23 Thread Jos Koot
Sorry, I was too hasty. Thanks for the correctrion. Jos -Original Message- From: users-boun...@racket-lang.org [mailto:users-boun...@racket-lang.org] On Behalf Of David Van Horn Sent: 23 September 2010 17:19 To: users@racket-lang.org Subject: Re: [racket] Is there a name