RosettaCodeData/Task/Find-limit-of-recursion/CoffeeScript/find-limit-of-recursion.coffee
2023-07-01 13:44:08 -04:00

7 lines
160 B
CoffeeScript

recurse = ( depth = 0 ) ->
try
recurse depth + 1
catch exception
depth
console.log "Recursion depth on this system is #{ do recurse }"