-
-
Save kuribas/eb6b2c38b228fcfe46c28525901996ba to your computer and use it in GitHub Desktop.
This file contains 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
module Main | |
import Data.Maybe | |
import Decidable.Equality | |
foo : Maybe Int -> Int | |
foo x = case isItJust x of | |
Yes _ => fromJust x | |
No _ => 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment