Did you know ... Search Documentation:
Packs (add-ons) for SWI-Prolog

Package "no_repeats"

Title:New ways to avoid duplicate solutions
Rating:Not rated. Create the first rating!
Latest version:1.1.118
SHA1 sum:b53fee5f7e6d211742d29565b03390fb6a9eaef8
Author:Douglas Miles http://www.linkedin.com/in/logicmoo
Maintainer:TeamSPoon https://github.com/TeamSPoon/
Packager:TeamSPoon/LogicMoo https://github.com/TeamSPoon/
Home page:https://github.com/TeamSPoon/no_repeats
Download URL:https://github.com/TeamSPoon/no_repeats/release/*.zip


No reviews. Create the first review!.

Details by download location



New ways to avoid duplicate solutions

:- pack_install('https://github.com/TeamSPoon/no_repeats.git').

?- use_module(library(no_repeats)).

?- no_repeats( X , member(X-Y,[3-2,1-4,1-5,2-1])).
% X = 3, Y = 2 ;
% X = 1, Y = 4 ;
% X = 2, Y = 1.

 ?- no_repeats(member(X,[3,1,1,1,3,2])).
% X = 3 ;
% X = 1 ;
% X = 2.

Some TODOs

Document this pack!

Write tests

Untangle the 'pack' install deps (Moving predicates over here from logicmoo_base)

Not obligated to maintain a git fork just to contribute

Dislike having tons of forks that are several commits behind the main git repo?

Be old school - Please ask to be added to TeamSPoon and Contribute directly !

Still, we wont stop you from doing it the Fork+PullRequest method

BSD 2-Clause License

Copyright (c) 2017, TeamSPoon and Douglas Miles <logicmoo@gmail.com> All rights reserved.

Contents of pack "no_repeats"

Pack contains 6 files holding a total of 14.6K bytes.