Recursion in RimStone is easy
There are two examples posted today showcasing recursion in RimStone:
The first example calculates the factorial of a number, and the second reverses a string.
Note that by default, the recursion depth is capped at 300 for safety, but you can lift that limit to any number by using "stack-depth" clause in set-app statement.
Copyright (c) 2019-2025 Gliim LLC. All contents on this web site is "AS IS" without warranties or guarantees of any kind.