From: Olaf on
Hi,

how can I create all permutation of the 3 chars in a string like UVW? I
guess, this are 9 tuples. Maybe the permutation of 123 could work for me
also.

Thanks,
Olaf
From: Bruno Luong on
It is confusing whereas you want permutation (6) or combination (9). But here is one way.

perms('UVW')

Bruno
From: Olaf on
> It is confusing whereas you want permutation (6) or combination (9). But
> here is one way.
>
> perms('UVW')

Oops, combination is what I want.

Thanks for clearification
Olaf
From: us on
Olaf <noreplay(a)inder.net> wrote in message <hr649l$d11$2(a)fuerst.cs.uni-magdeburg.de>...
> > It is confusing whereas you want permutation (6) or combination (9). But
> > here is one way.
> >
> > perms('UVW')
>
> Oops, combination is what I want.
>
> Thanks for clearification
> Olaf

a hint:

help nchoosek;

us