Next vs. rest (and reduce)

2012-02-25 Thread JuanManuel Gimeno Illa
I'm trying to understand the difference between next and rest, so I've taken clojure's implementation of some of the collection functions to view how those functions use them. The source code of reduce is (I've marked in red the calls than I do not understand). (def reduce (fn r

Re: Next vs. rest (and reduce)

2012-02-25 Thread Stephen Compall
On Sat, 2012-02-25 at 03:32 -0800, JuanManuel Gimeno Illa wrote: The source code of reduce is (I've marked in red the calls than I do not understand). Please keep in mind that some mail readers are viewing the plain text part, so can't see HTML markup, especially among an audience likely to be