-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement Maybe monad #4
Labels
feature
New functionality and improvements for old one
Comments
katunilya
added a commit
that referenced
this issue
Apr 23, 2022
* `Maybe` container * `Some` container * `_Nothing` singletone for empty value * `Nothing` instance * `bind` function
katunilya
added a commit
that referenced
this issue
Apr 23, 2022
katunilya
added a commit
that referenced
this issue
Apr 23, 2022
katunilya
added a commit
that referenced
this issue
Apr 23, 2022
Merged
katunilya
added a commit
that referenced
this issue
Apr 23, 2022
katunilya
added a commit
that referenced
this issue
Apr 23, 2022
* Add Maybe base impl (#4) * `Maybe` container * `Some` container * `_Nothing` singletone for empty value * `Nothing` instance * `bind` function * Add tests for `Maybe` monad (#4) * `test_nothing_is_singleton` * `test_bind` (including >> syntax) * Upd commit template (#4) * Add dedicated __rshift__ (#4) * Add `maybe.recover` with tests (#4) * Add `maybe.choose` (#4) * Replace use of Callable with MaybeFunc (#4)
katunilya
added a commit
that referenced
this issue
May 1, 2022
* Add Maybe base impl (#4) * `Maybe` container * `Some` container * `_Nothing` singletone for empty value * `Nothing` instance * `bind` function * Add tests for `Maybe` monad (#4) * `test_nothing_is_singleton` * `test_bind` (including >> syntax) * Upd commit template (#4) * Add dedicated __rshift__ (#4) * Add `maybe.recover` with tests (#4) * Add `maybe.choose` (#4) * Replace use of Callable with MaybeFunc (#4)
katunilya
pushed a commit
that referenced
this issue
May 1, 2022
Resolve "Future monad" Closes #4 See merge request katunilya/mona!3
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Maybe
stateSome
value (fromMaybe
)Nothing
from (Maybe
based on_Nothing
singleton type)recover: V -> (Maybe[T] -> Maybe[T] | Maybe[V])
choose: (Maybe[T] -> Maybe[V]) list -> Maybe[V]
The text was updated successfully, but these errors were encountered: