Question: The Haskell function (left) and the Prolog predicate (right) does the same thing. What do they do? foo::NumaaIntafoo0=0foonm=n+foon(m1)foo(,0,0).foo(N,M,Result):M>0,M1isM1foo(N,M1,Result1)ResultisN+Result1
The Haskell function (left) and the Prolog predicate (right) does the same thing. What do they do?

foo::NumaaIntafoo0=0foonm=n+foon(m1)foo(,0,0).foo(N,M,Result):M>0,M1isM1foo(N,M1,Result1)ResultisN+Result1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
