Find limit of recursion

Maximum recursion depth is memory dependent.

func recurse(n) {
   say n
   recurse(n+1)
}

recurse(0)

Output:

0
1
2
...
...
357077
357078
357079