Skip to content

Instantly share code, notes, and snippets.

@justinhj
Created January 19, 2020 05:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justinhj/c3ca4289bf275b3afe60f5bb8e27fd78 to your computer and use it in GitHub Desktop.
Save justinhj/c3ca4289bf275b3afe60f5bb8e27fd78 to your computer and use it in GitHub Desktop.
val finalState2 = finalEvents.map(eventToState).combineAll
println(show"Final state 2:\n$finalState2")
/* Output:
Final state 2:
Account holder: Ben Johnson
Balance: 80
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment