uiua-lang / uiua

A stack-based array programming language
https://www.uiua.org
MIT License
1.62k stars 116 forks source link

Suggestion: Function pack inverse #538

Closed ghost closed 2 months ago

ghost commented 3 months ago

I have a code snippet: +√. 100. The function snippet can include in other snippet, but what if we can invert it? I know, we have setinv modifier, but can we? I think that the inverse of a code snippet is: °([[snippet]]). It equal to °₁°₂°₃...°n when n and the subscript numbers are primitives of the snippet (About the optimize Issues: I just misclick, not a prank.)

kaikalii commented 3 months ago

Sorry, I'm not sure I understand what you are requesting. Can you clarify?

kaikalii commented 2 months ago

Closing due to inactivity.