Questions about Scala return parameters of recursive

Scala recursive return parameters to write himself, because he could see the last line of code stuck in an infinite loop, the exit condition is not in a row, so the return type to determine their own

Guess you like

Origin www.cnblogs.com/sunpengblog/p/11545462.html