Skip to content

Instantly share code, notes, and snippets.

@gszeliga
Created December 9, 2015 22:32
Show Gist options
  • Save gszeliga/d1e79a16d1f2acec19c0 to your computer and use it in GitHub Desktop.
Save gszeliga/d1e79a16d1f2acec19c0 to your computer and use it in GitHub Desktop.
//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