Idris2/tests/idris2/basic/basic030/arity.idr
2023-09-07 14:57:22 +01:00

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)