lean4-htt/tests/lean/run/dofun_prec.lean
2020-10-25 09:16:38 -07:00

10 lines
167 B
Text

def tst1 (x : Nat) : IO Unit := do
if x > 0 then
IO.println "hello"
IO.println "world"
def tst2 (xs : List Nat) : IO Unit :=
xs.forM fun x => do
IO.println x