permutations / combinations implementation

classic Classic list List threaded Threaded
2 messages Options
Tudor Girba Tudor Girba
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

permutations / combinations implementation

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
Runar Jordahl Runar Jordahl
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: permutations / combinations implementation

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
>

Loading...