uiua-lang / uiua

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

Incorrect Factorial function in tutorial #539

Closed ChrisPenner closed 3 months ago

ChrisPenner commented 3 months ago

Not sure where to report this, but I found this suggested idiomatic Factorial function on the https://www.uiua.org/tutorial/controlflow page, it suggests:

As a simple example, here is a function that calculates the factorial of a number. Note that you should not actually do this, as `/×+1` is shorter, faster, and more idiomatic.

If I'm understanding correctly I'm guessing this should be /×+1⇡ instead.

Cheers!