The-Inevitable-Event-Centric-Book
The-Inevitable-Event-Centric-Book copied to clipboard
Problem: Define the word Fold
Does this have an event-centric meaning other than the functional programming meaning of fold?
I'm referring to what greg says => state is a left fold of the events list
It happens to map very much to the intrinsic FP meaning; for me that implies:
- building a state (generally without context)
- from an
initial
state - logically from individual
events
Example of a fold
function - pretty much all FP langs have a fold
(it's called Aggregate
in LINQ)