出典:Wiktionary
出典:『Wiktionary』 (2024/11/04 07:07 UTC 版)
出典:Wikipedia
出典:『Wikipedia』 (2011/07/24 09:28 UTC 版)
In computer science, a tail call is a subroutine call that happens inside another procedure and that produces a return value, which is then immediately returned by the calling procedure. The call site is then said to be in tail position, i.e. at the end of the calling procedure. If a subroutine performs a tail call to itself, it is called tail-recursive. This is a special case of recursion.