The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

plepilov (9) [Avatar] Offline
Probably there are errors in listing on the page 42:

int AggregateNumbers(BinaryOperator op, int init, int from, int to) {
if (from > to) return init;
int sumRest = SumNumbers(op, initial, from + 1, to);
return op(from, sumRest);

I believe 'SumNumbers' should be changed to recursive call of 'AggregateNumbers' and name of the parameter should be 'init' instead of 'initial'.
Tomas Petricek (160) [Avatar] Offline
Re: Section 2.3.1 listing error?
yes that's right - thanks for reporting this. It will be fixed in the next MEAP release!