1.A Prolog program that takes two integer lists as arguments and
returns either “T” or “F” is given below.
a.Explain what this code does.
b.Take [1, 8, 20], [1, 7] as argumnets what will be the
result?
c.Take [1, 8, 20], [1, 8, 23] as arguments what will be the
result?
lexless([],[_|_]).
lexless([X|_],[Y|_]) :-X < Y.
lexless([A|B],[C|D]) :-A = C, lexless(B,D).
1.A Prolog program that takes two integer lists as arguments and returns either “T” or “F” is given below. a.Explain wha
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
1.A Prolog program that takes two integer lists as arguments and returns either “T” or “F” is given below. a.Explain wha
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!