ddimtirov / nuggets

nuggets is (yet another) utility library for Java
https://ddimtirov.github.io/nuggets/javadoc/io/github/ddimitrov/nuggets/package-summary.html
Apache License 2.0
4 stars 1 forks source link

'Fallback' combinator for JDK functional objects #24

Closed ddimtirov closed 7 years ago

ddimtirov commented 8 years ago

Return the result of the first call that does not throw exception.

ddimtirov commented 7 years ago

We could use a better Groovy API - right now the type inference is not strong enough and we need to cast closures to the right functional type.

Not even sure whether we need this in Kotlin, considering the built-in functional primitives. Leaving for later.