3 ms·
The initial value of the cell is (eventually) one of the parameters of add(n) -- when you compute the final value. Before you get to that point, the various add
by greglindahl 14y ago
The initial value of the cell is (eventually) one of the parameters of add(n) -- when you compute the final value. Before you get to that point, the various add(n) operations aimed at a given cell are combined. In the diagram in the first posting in the series, 18 add(1) operations on the same cell turn into a single add(18) operation. It's only then the cell is read (or the bucket is merged) that the final value of the cell is computed.
- walrus 14y agoI understand, but I still think it's iffy calling it a combinator. Maybe calling it lazy evaluation (sort of) would be better? (I'm not sure if you saw my edit before you replied. I added the last two sentences only a few minutes before your response.)