xpile 0.1.615

Polyglot transpile workbench (Python/C/C++/Rust/Ruchy/Lean ↔ Rust/Ruchy/PTX/WGSL/SPIR-V) with provable contracts at every layer.
1
2
3
4
5
6
7
def outer(n: int) -> int:
    base = 10
    def go(k: int) -> int:
        if k <= 0:
            return base
        return go(k - 1) + base
    return go(n)