Re: Exegesis 4: reduce?

2002-04-03 Thread Damian Conway
Andrew Wilson wrote: I'm sure I'm missing something fairly fundamental, but could someone shed more light on the example: # reduce list three-at-a-time $sum_of_powers = reduce { $^partial_sum + $^x ** $^y } 0, xs_and_ys; specifically what is being iterated over, what gets bound and

Re: Exegesis 4: reduce?

2002-04-03 Thread Andrew Wilson
On Thu, Apr 04, 2002 at 09:37:19AM +1000, Damian Conway wrote: a really clear explanation Ah yes, that makes a lot of sense. Thank you. Andrew