Y
Hacker News
new
|
ask
|
show
|
jobs
by
erik_seaberg
2612 days ago
This version of f can't fail, so "return" wraps its value in the same monad. Normally the "do" block would end by getting a monad from f, just as the Go version would normally let f return an error.