How to avoid repetition in prolog

Posted by Pradeep on Stack Overflow See other posts from Stack Overflow or by Pradeep
Published on 2010-03-19T02:49:38Z Indexed on 2010/03/19 3:01 UTC
Read the original article Hit count: 285

Filed under:

I get several results with the same outputs.

I want to get jack,jane only one time, but I get it two times.

How can I avoid this? I tried setof but I couldn't get it done. Please can someone help me on this?

© Stack Overflow or respective owner

Related posts about prolog