On Sunday, April 14, 2013 7:51:10 PM UTC+2, Matthew Hill wrote: > Function composition is done via comp. Using -> and ->> is like function > composition in reverse order (though there's a difference between how the > two thread return values), and often it reads more naturally.
-> applies the functions immediately whereas comp returns a new function that is the composition of its arguments. -> works with functions of any arity; comp only with unary functions. As pointed out above, -> merely combines the unevaluated forms it is given, and only if they happen to be function application forms will the result be similar to function composition. -marko -- -- 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 unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.