Skip to content
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

Raise error when trying to unwrap None #19

Open
wpiekutowski opened this issue Apr 21, 2016 · 1 comment
Open

Raise error when trying to unwrap None #19

wpiekutowski opened this issue Apr 21, 2016 · 1 comment

Comments

@wpiekutowski
Copy link

wpiekutowski commented Apr 21, 2016

something = Maybe(12)
something.value! #=> 12

nothing = Maybe(nil)
nothing.value! #=> raises Kleisli::Maybe::UnwrappedNoneError

Based on https://twitter.com/wpiekutowski/status/720247573714440192.

@txus
Copy link
Owner

txus commented May 30, 2016

Want to give it a try @wpiekutowski ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants