[racket] question about permutation

From: Xiaojian Wang (xiaoj7 at hotmail.com)
Date: Sun Feb 13 19:42:37 EST 2011

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?

 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20110214/107216fb/attachment.html>

Posted on the users mailing list.