News for hackers. Stuff that matters.
Re:Tail recursion in Python by msuvakov on Saturday March 17, 2018 @05:43PM (#16609219)
It should be:

  def tail_factorial(n, accumulator=1):
    if n == 0: return accumulator
    else: return tail_factorial(n-1, accumulator * n)

There are no comments on this comment yet.