can anyone explain why this doesn't work? (defprotocol arrow (>>> ([f g] [f g & fs]) "compose left to right"))
(extend clojure.lang.Fn arrow {:>>> (fn ([f g] #(g (f %))) ([f g & fs] (apply >>> (>>> f g) fs)))}) (>>> inc inc inc) ; gives this error: ; java.lang.IllegalArgumentException: Wrong number of args passed to: user$eval--21$fn--23$G--10 (test.clj:3) this does work, however: (>>> inc inc) (>>> inc inc inc) -- 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