users-prolog
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

"distinct" predicate


From: Abhinav-Bhardwaj
Subject: "distinct" predicate
Date: Thu, 31 Oct 2002 14:54:54 +0530 (IST)

hi,
is there any way by which i can specify a rule say
distinct..which succeeds only when all the terms in a list
are distinct.
for eg:
?- distinct([a, b, c, d]).
yes
?- distinct([a, b, a, d]).
no

thanks in advance,
regards,
Abhinav






reply via email to

[Prev in Thread] Current Thread [Next in Thread]