Hello i want help with a scholl excercise about lists in prolog...
It says write a program that will check a list (We give the list, exmp. sort([1,2,3,4,5]). )
when the list is sorted from lower two bigger must return
yes. otherwise no.
this is what i have written so far...
sort([X,Y|T]):-...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.