Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Combinatoric generators should accept a single integer #42

Open
ramhiser opened this issue Aug 9, 2015 · 0 comments
Open

Combinatoric generators should accept a single integer #42

ramhiser opened this issue Aug 9, 2015 · 0 comments

Comments

@ramhiser
Copy link
Owner

ramhiser commented Aug 9, 2015

Similar to utils::combn, iff a single integer is passed to icombinations or ipermutations, the iterator should return the combinations/permutations of the sequence. For example, the following should be equivalent:

  • icombinations(5, 2)
  • icombinations(1:5, 2)

Currently, as.list(icombinations(5, 2)) returns list().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant