How would a find function like the one we developed in Haske

How would a find function, like the one we developed in Haskell, differ if it were written in Prolog?

Solution

Answer:

In general the find function in prolog is given as below :

findall(Object,Goal,List).

The example is given as below :

findall(X,descend(arrays,X),Z).

How would a find function, like the one we developed in Haskell, differ if it were written in Prolog?SolutionAnswer: In general the find function in prolog is g

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site