|
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
[Prev in Thread] | Current Thread | [Next in Thread] |