Closed furesoft closed 1 year ago
The method you requested exists already, which is called Convert
. I could use different name such as bind
(F#) or map/flatMap
(Java) but Convert
reflects its natural meaning in the context of imperative language: converts the value of type A
to the value of type B
.
It would be really usefull to have a bind method to make more readable code.