Skip to content

Instantly share code, notes, and snippets.

Created December 9, 2015 22:32
What would you like to do?
//What we're gonna do with the async text when available
Partial<Builder> textToApply =
.by((builder, text) -> builder.flatMapR(b -> text.mapR(b::text)));
//Same thing for the number
Partial<Builder> numberToApply =
.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