[Solved] how to rewrite a function to recursive [closed]
[ad_1] Use lengths of the lists to terminate the recursion. In this example implementation, if length of either of the lists is 0, we have either mapped it all, or it is an empty list to begin with, thus we terminate the recursion. Also worth noting that l1[1:] is the slice of the list we … Read more