JuliaMath / JuliaMath/Combinatorics.jl

function nthcomb to match nthperm

Open
#132 1 comment 3 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
230
Forks
62
PR merge metrics
No merged PRs in 30d

Description

I needed to sample the nth lexicographic combination of from a collection rather than nth permutation for some internal projects. I'm wondering if there's interest to have this functionality as part of `Combinatorics.jl` to match `nthperm()`. I've extracted the code to do this from the other project and made this repo https://github.com/ajloza/NthComb.jl
Right now it's not using the nomenclature of `nthperm` for variable names, so if there is interest, I'd refactor it and try to match the api. Apologies if I've missed this functionality or an issue addressing it

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.