Maybe monad in Vlang #15216
devosalain
started this conversation in
General
Replies: 1 comment
-
Use a sum type. https://github.com/vlang/v/blob/master/doc/docs.md#sum-types |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What would be the maybe monad in Vlang.
Here for other languages,
http://www.rosettacode.org/wiki/Monads/Maybe_monad
Beta Was this translation helpful? Give feedback.
All reactions