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
def lines(s: str) -> list[str]:
    return s.splitlines()


def count_lines(s: str) -> int:
    return len(s.splitlines())