Created
October 6, 2011 00:09
-
-
Save AlexBaranosky/1266130 to your computer and use it in GitHub Desktop.
Sample
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
Writer(5, "").flatMap { num => Writer(num + 3, "added three") | |
.flatMap { Writer(_ * 5, "times five")} | |
// => Writer(40, "added threetimes 5") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment