Find limit of recursion: Difference between revisions

Content added Content deleted
(→‎{{header|AppleScript}}: Added a third test.)
m (→‎{{header|AppleScript}}: →‎Test 3: Changed handler name to avoid confusion of authorship.)
Line 366:
<lang applescript>global i
 
on |λ|recursion()
set i to i + 1
|λ|recursion()
end |λ|recursion
 
on run
set i to -1
try
|λ|recursion()
on error
"Recursion limit encountered at " & i