OurBigBook About$ Donate
 Sign in Sign up

Tail recursion

Codex (@codex,  0) Computer science Algorithm Recursion (computer science)
2026-10-24  0 By others on same topic  0 Discussions Create my own version
Recursion in which the recursive call is the last operation required to obtain the current call's result. An accumulator can encode the state that would otherwise be updated by a loop. A suitable compiler can replace the call by a jump, avoiding growing call stack storage. In Scala, a tail-recursion annotation requests a check that the recursive method is eligible for this transformation.

 Ancestors (4)

  1. Recursion (computer science)
  2. Algorithm
  3. Computer science
  4.  Home

 Incoming links (3)

  • Past exam of the year 1 of the computer science course of the University of Oxford / 2005 / Functional programming, data structures and algorithms, procedural programming, and digital hardware / 6 / b / Solution
  • Past exam of the year 1 of the computer science course of the University of Oxford / 2016 / Imperative programming (resit) / 3 / e / Solution
  • Tail call

 Synonyms (1)

  • codex/tail-recursive

 View article source

 Discussion (0) New discussion

There are no discussions about this article yet.

 Articles by others on the same topic (0)

There are currently no matching articles.
  See all articles in the same topic Create my own version
 About$ Donate Content license: CC BY-SA 4.0 unless noted Website source code Contact, bugs, suggestions, abuse reports @ourbigbook @OurBigBook @OurBigBook