Am 13.06.21 um 12:55 schrieb Artur T.:
Am 13.06.21 um 12:45 schrieb Riccardo (Jack) Lucchetti:
> On Sun, 13 Jun 2021, Artur T. wrote:
>
>> If we agree that this shall become part of the extra package, I add
>> 2-3 tests to our test suit for extra.
>
> Nice work, Artur. I vote for "combinations()". Anyway, let's not
> forget to add in the documentation that the recursive algorithm I used
> is not the fastest when arguments are large.
Glad you like it, Jack.
Let me open a new branch and add things to the extra package first. I
still have some questions on some corner cases which should be discussed
I think. I'll come back on this in a few minutes.
Artur
Ok, here is the initial implementation plus tests:
https://sourceforge.net/p/gretl/git/ci/b543dfe6e1cb9493fa22a8c5403decbea0...
Initially, I thought there is some corner case which need to be
discussed but I think I've covered all relevant cases in the test script:
https://sourceforge.net/p/gretl/git/ci/combinations-to-extra/tree/addons/...
Of course, this functions still needs to be documented.
Artur