the -> macro and partial function
问题 Why can't I use a partial function or an anonymous function in a chained call with -> ? (-> "123" seq sort reverse (partial apply str)) => #<core$partial$fn__4230 clojure.core$partial$fn__4230@335f63af> I would have thought the partial function would be created and immediately applied to the previous function's result, but it's actually returned itself. A simple chaining of functions with one parameter of course works without problems: (-> "123" seq sort reverse clojure.string/join) 回答1: As -