[racket] Is there a name for: (lambda (x) (x)) ?
Sorry, I was too hasty.
Thanks for the correctrion.
Jos
> -----Original Message-----
> From: users-bounces at racket-lang.org
> [mailto:users-bounces at racket-lang.org] On Behalf Of David Van Horn
> Sent: 23 September 2010 17:19
> To: users at 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 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 -- your eyes missed a set of parens. The function in question is:
>
> (lambda (x) (x))
>
> not
>
> (lambda (x) x)
>
> David
> _________________________________________________
> For list-related administrative tasks:
> http://lists.racket-lang.org/listinfo/users