Join Slack
Powered by
what's the new do-notation syntax for monads?
# arrow
i
Ifvwm
02/07/2021, 1:58 AM
what's the new do-notation syntax for monads?
r
raulraja
02/07/2021, 9:42 AM
The one that will be preserved in 0.12 and forward looks like this:
Copy code
either { val r1 = eitherValueOfInt.bind() val r2 = eitherValue2OfInt.bind() r1 + r2 }
2
Views
Open in Slack
Previous
Next