Y
Hacker News
new
|
ask
|
show
|
jobs
by
exceptione
60 days ago
Monad Maybe?
1 comments
notpushkin
59 days ago
Kinda like that, but with the error branch having a value too. I think Result is the common name for this monad:
type Result e v = Ok v | Err e
https://en.wikipedia.org/wiki/Result_type
link