unsafePerformIO
in Lean4: unsafe def unsafePerformIO [Inhabited a] (io: IO a): a :=
match unsafeIO io with
| Except.ok a => a
| Except.error e => panic! "expected io computation to never fail"
@[implementedBy unsafePerformIO]
def performIO [Inhabited a] (io: IO a): a := Inhabited.default