Skip to content

Raise error when trying to unwrap None #19

@wpiekutowski

Description

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

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions