RosettaCodeData/Task/Find-limit-of-recursion/Factor/find-limit-of-recursion-2.factor
2019-09-12 10:33:56 -07:00

6 lines
127 B
Factor

SYMBOL: depth
: fn ( n -- n ) depth inc 1 + fn 1 + ;
[ 0 fn ] try
depth get "Recursion depth on this system is %d.\n" printf