PERMUTATIONS

[GENERIC-FUNCTION]


OM 6.1
Function Reference
ARGUMENTS:
  - bag a list  

Description:

Return a list of all the permutations of <bag>.

Ex. (permutations '(a b c)) => ((a b c) (a c b) (b a c) (b c a) (c a b) (c b a))