[Pharo-project] permutations / combinations implementation
Hi, Is there an implementation of permutations and combinations of a collection? Cheers, Doru -- www.tudorgirba.com "Presenting is storytelling."
Hi Doru! I did a lot of work with permutations and combinations a few years back when I was writing code to help me solve the challenges in Simon Singh's "The Code Book". It probably isn't comprehensive (and it's all in VisualAge Smalltalk), but I expect it might provide a large chunk of what you're looking for. I could try and find it for you, if you like. -- Cheers, Peter. On 15 nov 2010, at 10:55, Tudor Girba <tudor.girba@gmail.com> wrote:
Hi,
Is there an implementation of permutations and combinations of a collection?
Cheers, Doru
-- www.tudorgirba.com
"Presenting is storytelling."
Hi, you might also be interested in #maPermutationsDo: in the "Ma base additions" package. "I am a collection of other SequenceableCollections. For each combination of elements in my element-Collections, value aBlock with the arguments Array of each combination of elements." On Mon, Nov 15, 2010 at 3:55 AM, Tudor Girba <tudor.girba@gmail.com> wrote:
Hi,
Is there an implementation of permutations and combinations of a collection?
Cheers, Doru
-- www.tudorgirba.com
"Presenting is storytelling."
participants (3)
-
Chris Muller -
Peter Hugosson-Miller -
Tudor Girba