Created
December 9, 2015 22:32
-
-
Save gszeliga/d1e79a16d1f2acec19c0 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
//What we're gonna do with the async text when available | |
Partial<Builder> textToApply = | |
sources.value(textf) | |
.by((builder, text) -> builder.flatMapR(b -> text.mapR(b::text))); | |
//Same thing for the number | |
Partial<Builder> numberToApply = | |
sources.value(numberf) | |
.by((builder, number) -> builder.flatMapR(b -> number.mapR(b::number))); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment