I'm trying to write fully functional and optional method that maps optional
String -> optional natural number (let suppose natural numbers begin with 0)
This is what I wrote so far:
However my intuition tells me that it is possible to write this function with using only interfaces from Functional library instead using if statements.