Did you know ... | Search Documentation: |
Packs (add-ons) for SWI-Prolog |
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 |
No reviews. Create the first review!.
Version | SHA1 | #Downloads | URL |
---|---|---|---|
0.0.7 | 0b97b75caab2aacd0faac429db6f3f20acbc1f8e | 1 | https://github.com/TeamSPoon/no_repeats.git |
1.1.115 | fc5579586cccbe8e3295ce679e6a0d619be9a9aa | 1 | https://github.com/TeamSPoon/no_repeats.git |
1.1.117 | e08c513313976b033aa3daceef5254c88311a1e1 | 1 | https://github.com/TeamSPoon/no_repeats.git |
1.1.118 | 5ac3707e7a22c9bed975246f03325897f9e59e35 | 1 | https://github.com/TeamSPoon/no_repeats.git |
870a061b317bcff635bb9505490b5cbba1d0c4e1 | 1 | https://github.com/TeamSPoon/no_repeats.git | |
a2351d26a735db1637bb55c6dbc261559055ed53 | 3 | https://github.com/TeamSPoon/no_repeats.git | |
b53fee5f7e6d211742d29565b03390fb6a9eaef8 | 1 | https://github.com/TeamSPoon/no_repeats.git | |
d1bde14d6d81542b241295d45cb750859e105f7d | 13 | https://github.com/TeamSPoon/no_repeats.git |
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.
Document this pack!
Write tests
Untangle the 'pack' install deps (Moving predicates over here from logicmoo_base)
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
Copyright (c) 2017, TeamSPoon and Douglas Miles <logicmoo@gmail.com> All rights reserved.
Pack contains 6 files holding a total of 15.1K bytes.