Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Trivial examples
Long itemId = 42L;
BigDecimal vatRate = BigDecimal.of(0.42);
// error handling is omitted for brevity
return fetchItem(itemId)
.flatmap(item -> calculateTax(item, vatRate))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment