reverse-ffi IO

This commit is contained in:
Alexander Bentkamp
2023-11-10 11:27:09 +01:00
parent f6063023b4
commit 8a6486bdd5
4 changed files with 33 additions and 29 deletions
+5 -2
View File
@@ -1,3 +1,6 @@
import Lean
@[export my_length]
def myLength (s : String) : UInt64 :=
s.length.toUInt64
def myLength (s : String) : IO Unit := do
IO.println "hello"
return () -- IO.println Lean.origin