3 ms·
The tail recursion was not my point. I also could have given another implementation of sum. I wanted to demonstrate that the implementation of Dice::total() ca
by albertzeyer 16y ago
The tail recursion was not my point. I also could have given another implementation of sum.
I wanted to demonstrate that the implementation of Dice::total() can be much clearer and still in a similar functional way.