On Fri, 8 Apr 2022, Sven Schreiber wrote:
Am 08.04.2022 um 10:26 schrieb Riccardo (Jack) Lucchetti:
> On Fri, 8 Apr 2022, Sven Schreiber wrote:
>
>> Am 08.04.2022 um 10:10 schrieb Riccardo (Jack) Lucchetti:
>>>
>>> Guys,
>>>
>>> looking at some old code I had I found this function, which gives you
>>> all the possible combinations of k elements from a lis of n objects.
>>> For
>>> example:
>>> ...
>>> My question is: I was under the impression that we alreasy added
>>> something like this, but I can't find it either among the native
>>> functions, nor in the extra package. Any hint?
>>>
>> powerset() or something like that?
>
> No, powerset() is a different thing
OK, well then: combinations() in extra, I guess.
Aaaaahhh, thanks, that's the one!
-------------------------------------------------------
Riccardo (Jack) Lucchetti
Dipartimento di Scienze Economiche e Sociali (DiSES)
Università Politecnica delle Marche
(formerly known as Università di Ancona)
r.lucchetti(a)univpm.it
http://www2.econ.univpm.it/servizi/hpp/lucchetti
-------------------------------------------------------