Scala Library: scala.annotation.tailrec
scala.annotation.tailrec
A method annotation which verifies that the method will be compiled with tail call optimization.
If it is present, the compiler will issue an error if the method cannot be optimized into a loop.
- Source
- Since
- 2.8
Instance Constructors From scala.annotation.tailrec
new tailrec()
(defined at scala.annotation.tailrec)
Full Source:
Interested in Scala?
I send out weekly, personalized emails with articles and conference talks.
Subscribe now.