• + 1 comment

    doing loop by recursion! cool man, you done it right. there's more elegant way to solve it, but your solution shows how a fp supposed to be written.