Find limit of recursion: Difference between revisions
Content added Content deleted
(→{{header|J}}: briefer using adverse) |
(added Inform 7 solution) |
||
Line 368: | Line 368: | ||
==={{header|Unicon}}=== |
==={{header|Unicon}}=== |
||
This Icon solution works in Unicon. |
This Icon solution works in Unicon. |
||
=={{header|Inform 7}}== |
|||
<lang inform7>Home is a room. |
|||
When play begins: recurse 0. |
|||
To recurse (N - number): |
|||
say "[N]."; |
|||
recurse N + 1.</lang> |
|||
Using the interpreters built into Windows build 6F95, a stack overflow occurs after 6529 recursions on the Z-machine or 2030 recursions on Glulx. |
|||
=={{header|J}}== |
=={{header|J}}== |