Ad
  • Default User Avatar

    I agree with you, but I guess it's clearer than a tail-recursive solution, because I can only think of an additional function with an accumulator parameter for the list of digits to make it tail-recursive :)