mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-25 12:42:02 +03:00
9 lines
137 B
Idris
9 lines
137 B
Idris
|
data MyN = MkN Nat Nat
|
||
|
|
||
|
foo : Nat -> Nat -> Nat
|
||
|
foo x y = case MkN x of
|
||
|
MkN z => y
|
||
|
|
||
|
main : IO ()
|
||
|
main = printLn (foo 2 2)
|