Skip to content

Instantly share code, notes, and snippets.

@qexat
Last active September 17, 2023 20:49
Show Gist options
  • Select an option

  • Save qexat/5d4a9c5b69c42f6a860af9aa5324f11d to your computer and use it in GitHub Desktop.

Select an option

Save qexat/5d4a9c5b69c42f6a860af9aa5324f11d to your computer and use it in GitHub Desktop.
python interoperability within a courbe codebase
module (~python {
def fib(n: int) -> int:
if n <= 1:
return n
return fib(n - 2) + fib(n - 1)
}) MyModule
function MyModule.fib fib
function (args::List<String>) -> UInt8 {
print(fib(5))
} main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment