PROLOG all different

Posted by inspectorG4dget on Stack Overflow See other posts from Stack Overflow or by inspectorG4dget
Published on 2010-03-21T02:51:25Z Indexed on 2010/03/21 3:01 UTC
Read the original article Hit count: 461

Filed under:
|
|

Hello SO,

I have a very weird problem with PROLOG. I have used it before, but it's been a while and I'm rusty. I have a list of variables and I need to ensure that none of them are the same.

I have tried:

use_module(library(bounds)). all_different(A, B, C, D, 6, 8).

However, when I try this, I get an error saying that all_different/6 is undefined.

How can I go about solving this issue? Is there any library function that I can call directly for this?

I am VERY stuck and would greatly appreciate any help.

Thanks in advance.

© Stack Overflow or respective owner

Related posts about prolog

Related posts about beginner