[racket] Is there a name for: (lambda (x) (x)) ?
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
> -----Original Message-----
> From: users-bounces at racket-lang.org
> [mailto:users-bounces at 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, Tim Brown
> <tim.brown at 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).
> >>
> >> Robby
> >
> > I wondered whether there was a more "cultural" reason for insisting
> > that
> > *somewhere* in the program there is a need to type: (λ (t) (t))
> >
> > Remind us of our roots, or something. (Or is it an in joke?)
> >
> > 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.
> >
> >
> _________________________________________________
> For list-related administrative tasks:
> http://lists.racket-lang.org/listinfo/users