I am struggling with the following 2 questions in Prolog, I need this code for my work. Any help is greatly appreciated.
-How to write a predicate that recognizes a "pair" in RLE list? The return value of course is true or false.
-How to write a predicate that recognizes a RLE string?
I just seem to be lost. Please, any help is appreciated.
-How to write a predicate that recognizes a "pair" in RLE list? The return value of course is true or false.
-How to write a predicate that recognizes a RLE string?
I just seem to be lost. Please, any help is appreciated.