As I go along with "Concepts, Techniques and Models of Computer Programming by Peter Van Roy and Seif Haridi", I'll be putting my thoughts and solution to the exercises(ones that I'm able to crack :) ) here. Please let me know if any of the code snippets presented in solutions give errors as I might have made a mistake in correctly copying the code or something else.

Friday, January 16, 2009

Ch1, Ex8

Acc is creating new cell with content 0 in each Accumulate call and losing the previous accumulated values. Here is the correct version: