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:
-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
)
(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
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
() 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
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).
: 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
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
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
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
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
11 matches
Mail list logo