Hi Gregg, > > When you look at the function given as the first argument to 'recurse', (fn > [f g] #(f (apply g %&))), how do you think about when '%&' is replaced > by [1 2 3 4]? Does this happen only when 'recurse' has "consumed" all the > items in the collection it's been given (as the second argument)? > > I would guess that given an expression such as: ((mycomp inc first reverse) [1 2 3 4])
Clojure will first evaluate the innermost list, building a composed function with reduce, and only then pass the vector [1 2 3 4] to such composed function in any case, the good thing about pure functional programming is that you don't have to worry too much about the evaluation order, the result should be the same hth, -Gianluca -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
