On Aug 23, 2010, at 11:13 AM, Luka Stojanovic wrote: > On Mon, 23 Aug 2010 18:01:13 +0200, Joop Kiefte <iko...@gmail.com> wrote: > >> bad example =/ >> >> Yes, it is >> >> but you get the gist I hope >> >> better example: #(first (sort %)) ;) >> > > (comp first sort) > > and #(some-fn x %) can be written as > (partial some-fn x) > > which leaves #(some-fn % x) as case not trivial with other syntax > > again (fn [y] (some-fn y x)) is about 8 chars longer, so I guess #() form > really is not something that should be used that often
I don't know about you, but I find #(= 2 (count %)) much nicer and easier to read than (comp (partial = 2) count). -- 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