xpile 0.1.616

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
# PMAT-502aj (Tranche 2): s.title() -> title-case each word (first alpha of
# each word upper, rest lower; any non-alpha is a word boundary), matching
# Python exactly (incl. "it's".title() -> "It'S").
def t(s: str) -> str:
    return s.title()