mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-22 19:21:39 +03:00
6 lines
114 B
Idris
6 lines
114 B
Idris
|
foo : Maybe Int -> Bool -> Int
|
||
|
foo Nothing _ = 42
|
||
|
foo Nothing True = 94
|
||
|
foo (Just x) _ = x
|
||
|
foo Nothing False = 42
|