N8Brooks / combinatorics

🦕 Combinatorial generators including combinations, permutations, combinations with replacement, permutations with replacement, cartesian products, and power sets.
https://deno.land/x/combinatorics
MIT License
26 stars 1 forks source link

refactor: make all `r` parameters optional #21

Closed N8Brooks closed 2 years ago

N8Brooks commented 2 years ago

It may be convenient to make all r parameters optional like with permutations.

The benefit would be use cases where you want all combinations for something of unknown length.

The downside would be that it does not match this module's inspiration, itertools.

N8Brooks commented 2 years ago

Closing because this isn't inline with itertools.