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:d1bde14d6d81542b241295d45cb750859e105f7d
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

Reviews

No reviews. Create the first review!.

Details by download location

VersionSHA1#DownloadsURL
0.0.70b97b75caab2aacd0faac429db6f3f20acbc1f8e1https://github.com/TeamSPoon/no_repeats.git
1.1.115fc5579586cccbe8e3295ce679e6a0d619be9a9aa1https://github.com/TeamSPoon/no_repeats.git
1.1.117e08c513313976b033aa3daceef5254c88311a1e11https://github.com/TeamSPoon/no_repeats.git
1.1.1185ac3707e7a22c9bed975246f03325897f9e59e351https://github.com/TeamSPoon/no_repeats.git
870a061b317bcff635bb9505490b5cbba1d0c4e11https://github.com/TeamSPoon/no_repeats.git
a2351d26a735db1637bb55c6dbc261559055ed533https://github.com/TeamSPoon/no_repeats.git
b53fee5f7e6d211742d29565b03390fb6a9eaef81https://github.com/TeamSPoon/no_repeats.git
d1bde14d6d81542b241295d45cb750859e105f7d13https://github.com/TeamSPoon/no_repeats.git

no_repeats

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 15.1K bytes.