On Thu, Oct 22, 2009 at 12:19 AM, John Harrop <[email protected]> wrote:

> On Wed, Oct 21, 2009 at 11:50 PM, samppi <[email protected]> wrote:
>
>> Oh, no. I was just wondering if there was a standard variable devoted
>> to it. A symbol would be aesthetically less clutter than #(%), even if
>> it'd take more typing. But if there isn't any other than the slow
>> apply function, I'm happy with #(%) too. :)
>
>
> Why settle?
>
> (definline call [arg] `(~arg))
>

And this is especially cute:

user=> (map call (map constantly [1 2 3]))
(1 2 3)

"map call" and "map constantly" are actually inverse operations.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to