Permutation Handler
Permutation Handler
- Subject: Permutation Handler
- From: Jed Verity <email@hidden>
- Date: Wed, 14 Feb 2001 00:09:45 -0800
Does anyone have a handler for creating a list of all possible permutations
of a list? For example:
given a list: {1,2,3,4}
the handler would return a list of all 24 possibilities:
{{1,2,3,4},{1,2,4,3},{1,3,2,4},{1,3,4,2},{1,4,2,3},{1,4,3,2},{2,1,3,4},{2,1,
4,3},{2,3,1,4},{2,3,4,1},...}
Thanks a bunch!
Jed
~)~)~)~)~)~)~)~)~)~)~)~)~)
Jed Verity