Remix.run Logo
srean 2 hours ago

> Tacopy is a Python library that provides a decorator to optimize tail-recursive functions by transforming them into iterative loops.

Can this handle mutually recursive calls ? Because those are mostly the only place I use tail calls, rest I translate to iterative loops, list comprehension, maps and reduces.

pansa2 an hour ago | parent [-]

> Limitations […] No mutual recursion: Only direct self-recursion is optimized