Clever, but I always thought -> had to take more than one parameter.  Maybe 
that's only for ->>

On Thursday, 13 December 2012 13:35:33 UTC-5, Gary Verhaegen wrote:
>
> I've found this gem in The Joy of Clojure : 
>
> #(-> [%]) 
>
> which would work similarly for any literal, I guess : #(-> {:a %}) in 
> this case. Much nicer than identity, IMHO. 
>
> On 4 June 2012 15:28, Steven Obua <ste...@obua.de <javascript:>> wrote: 
> > Jay's example has convinced me that redefinition is not a good idea 
> anyway, 
> > because #(f) is not always equivalent to f when (count [f]) is 1. 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> > Groups "Clojure" group. 
> > To post to this group, send email to clo...@googlegroups.com<javascript:> 
> > Note that posts from new members are moderated - please be patient with 
> your 
> > first post. 
> > To unsubscribe from this group, send email to 
> > clojure+u...@googlegroups.com <javascript:> 
> > 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