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