Write the function comb, computing(n,m) in such a way that when we call comb(n,m) it prints n and m before printing the result. Print out suitable words so n, m, and (n,m) are clearly distinguishable from one another.
Here is the comb function:
fun comb(n,m) =
if
m = n orelse m = 0 then 1
else
comb(n-1,m) + comb(n-1,m-1);