IterTools.jl
IterTools.jl copied to clipboard
support negative k for k-subsets
We have binomial(n, k)=0
for k<0
and k>n
.
This makes subsets
comply accordingly instead of creating wrong iterators or throwing errors.
Codecov Report
Merging #63 into master will increase coverage by
0.25%
. The diff coverage is66.66%
.
@@ Coverage Diff @@
## master #63 +/- ##
==========================================
+ Coverage 67.57% 67.82% +0.25%
==========================================
Files 1 1
Lines 256 258 +2
==========================================
+ Hits 173 175 +2
Misses 83 83
Impacted Files | Coverage Δ | |
---|---|---|
src/IterTools.jl | 67.82% <66.66%> (+0.25%) |
:arrow_up: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 8a26e26...c43cd24. Read the comment docs.