Expose Function.option()
Issue #18
resolved
Please make this method public. It's useful for working with collections that may have null elements.
Comments (2)
-
-
- changed status to resolved
add
Functions.nullToOption
- Log in to comment
I added it but renamed to
nullToOption
to make it clearer what its point is. I also renamedcompose
tocomposeOption
and added proper function composition in its place (compose(B => C, A => B): A => C
).Unfortunately this missed 2.2 so will be in 2.3 (unless the above means next release is 3.0)