permutations / combinations implementation

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

permutations / combinations implementation

Tudor Girba
Hi,

Is there an implementation of permutations and combinations of a collection?

Cheers,
Doru


--
www.tudorgirba.com

"Presenting is storytelling."


_______________________________________________
Pharo-users mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
Reply | Threaded
Open this post in threaded view
|

Re: permutations / combinations implementation

Runar Jordahl
You can look at #combinations:atATimeDo: (found in 1.2.1).

This method does "combinations" (
http://en.wikipedia.org/wiki/Combination ), but not permutations (
http://en.wikipedia.org/wiki/Permutations ).

Runar Jordahl

2010/11/15 Tudor Girba <[hidden email]>:

> Hi,
>
> Is there an implementation of permutations and combinations of a collection?
>
> Cheers,
> Doru
>
>
> --
> www.tudorgirba.com
>
> "Presenting is storytelling."
>
>
> _______________________________________________
> Pharo-users mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
>