Only case I can see where it doesn't "work".
user=> (def % partial)
#'user/%
user=> (map #(% + %) [1 2 3]) ;trying to use #(% + %) instead of #(partial
+ %)
ClassCastException java.lang.Long cannot be cast to clojure.lang.IFn
user/eval2/fn--3 (NO_SOURCE_FILE:2)

; (Also: my first post in this group. :))

On Tue, Jun 19, 2012 at 8:41 PM, Jay Fields <j...@jayfields.com> wrote:

> uh, it's going to do what you expect...
>
> user=>  (def % partial)
> #'user/%
> user=> (map #(inc %) [1 2 3])
> (2 3 4)
>
>
> On Tue, Jun 19, 2012 at 2:33 PM, Jim - FooBar(); <jimpil1...@gmail.com>
> wrote:
> > On 19/06/12 19:32, Timothy Baldridge wrote:
> >>
> >> That works until you try to use the shorthand for anonymous functions:
> >>
> >> (map #(inc %) [1 2 3]) ; what's this going to do?
> >>
> >> Timothy
> >
> >
> > Thank you! :-)
> >
> > Jim
> >
> >
> > --
> > 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 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 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