Created
December 20, 2021 07:39
-
-
Save joakin/0b7293fc5d3669b4702f7f986e988e6f to your computer and use it in GitHub Desktop.
Un safely unwrap a Maybe in production
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unwrap : Maybe a -> a | |
unwrap maybeA = | |
case maybeA of | |
Just a -> | |
a | |
Nothing -> | |
unwrap maybeA |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment