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

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.118b53fee5f7e6d211742d29565b03390fb6a9eaef81https://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 14.4K bytes.