Link to home
Start Free TrialLog in
Avatar of adidaz
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.
ASKER CERTIFIED SOLUTION
Avatar of F. Dominicus
F. Dominicus
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial