adidaz
asked on
Prolog check precedence of letters
I am new to Prolog and guys do you have any idea on writing a procedure checking precedence of small letters like:
precedes(a, b) --> Yes
precedes(c, d) --> Yes
precedes(m, w) --> Yes
precedes(q, a) --> No
But not using the following procedure?
precedes(X, Y) :-
X @< Y.
precedes(a, b) --> Yes
precedes(c, d) --> Yes
precedes(m, w) --> Yes
precedes(q, a) --> No
But not using the following procedure?
precedes(X, Y) :-
X @< Y.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.