In the video Greg Young explains event sourcing in a functional context. The main ideas are:
# Commands
fn(state, command) -> events
# Processing an event
fn(state, event) -> state
# Get current state
foldl(pattern_match, events) -> state
This repo is me trying to implement a bank account app using these simple concepts.