Last active
September 17, 2023 20:49
-
-
Save qexat/5d4a9c5b69c42f6a860af9aa5324f11d to your computer and use it in GitHub Desktop.
python interoperability within a courbe codebase
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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