On 28 March 2013 22:51, Ryan <arekand...@gmail.com> wrote:
> Thanks for your explanation Jonathan. I am still a bit confused however what
> is the proper solution here. Should i use an anonymous function instead to
> do what I want or can it be done with the #() syntax?

Just wanted to add that the #() syntax is just shorthand notation
expanded by the reader into fn* forms, so what it produces is an
anonymous function, with no special magic. To see the exact expansion,
you can quote a #() form:

user=> '#(foo)
(fn* [] (foo))

fn* is the special form behind #() and fn (which is a macro);
basically an implementation detail.

Cheers,
Michał

-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to