7 lines
101 B
Text
7 lines
101 B
Text
|
|
def f (x : Nat) : IO Unit := do
|
|
if x > 10 then
|
|
return
|
|
throw $ IO.userError "x ≤ 10"
|
|
|
|
#eval f 11
|