[racket] question about permutation

From: Shriram Krishnamurthi (sk at cs.brown.edu)
Date: Sun Feb 13 22:04:44 EST 2011

Sure.  Where are your design recipe steps?

2011/2/13 Xiaojian Wang <xiaoj7 at hotmail.com>:
> I want to make a permutation of a word, for example 1 2 3
>
> it should return
> 1 2 3
> 1 3 2
> 2 1 3
> 2 3 1
> 3 1 2
> 3 2 1
>
> or
> (list (list 1 2 3)
>       (list 1 3 2)
>         .
>         .
>         .
>
> Could you help me with this?
>
>
> _________________________________________________
>  For list-related administrative tasks:
>  http://lists.racket-lang.org/listinfo/users
>



Posted on the users mailing list.