07-28-2023, 05:59 PM
(This post was last modified: 07-28-2023, 06:01 PM by mnrvovrfc.
Edit Reason: It's "func" not "funct"
)
How about if you could demonstrate a simple example of "counting" with recursion with an user "funct"? Like in LISP... (roll eyes)
Please no factorial nor Fibonacci, sick and tired of that!
Can't do too many iterations, or it might overflow the "stack" or something else worse.
Maybe something like this:
Please no factorial nor Fibonacci, sick and tired of that!
Can't do too many iterations, or it might overflow the "stack" or something else worse.
Maybe something like this:
Code: (Select All)
var i
i = 0
mycount()
func mycount()
i = i + 1
if i < 20 : mycount() : endif
print 0, i * 30, i
swap
endfn