Created
January 19, 2020 05:36
-
-
Save justinhj/c3ca4289bf275b3afe60f5bb8e27fd78 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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