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. :)

On Oct 21, 6:33 pm, John Harrop <jharrop...@gmail.com> wrote:
> On Wed, Oct 21, 2009 at 7:49 PM, samppi <rbysam...@gmail.com> wrote:
> > Is there a standard function that takes one argument and calls it?
> > That is, the function equivalent to #(%). Or is that the best idiom
> > there is?
>
> #(%) is only four characters. Calling apply with only one argument also does
> this, and "apply" is five characters. Did you want a third one for some
> reason? :)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to