IterTools.jl icon indicating copy to clipboard operation
IterTools.jl copied to clipboard

support negative k for k-subsets

Open stev47 opened this issue 5 years ago • 1 comments

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.

stev47 avatar Aug 07 '19 09:08 stev47

Codecov Report

Merging #63 into master will increase coverage by 0.25%. The diff coverage is 66.66%.

Impacted file tree graph

@@            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.

codecov-io avatar Aug 07 '19 09:08 codecov-io