elizarov
04/25/2020, 8:37 PMCasey Brooks
04/26/2020, 1:10 AMjanvladimirmostert
04/26/2020, 6:12 AMtailrec
have solved this depth problem as well or is this "problem" just to indicate how you would solve other deep recursive problems where tailrec is not an option?elizarov
04/26/2020, 6:45 AMdepth
function is not tail-recursive and cannot be rewritten into a tail-recursive form unlike a similar function on lists, because depth makes two recursive calls. Even if one of them is transformed into a tail-call, then the other is still not a tail-call.janvladimirmostert
04/26/2020, 6:51 AM