RosettaCodeData/Task/Permutations/LFE/permutations-1.lfe
2016-12-05 23:44:36 +01:00

7 lines
122 B
Text

(defun permute
(('())
'(()))
((l)
(lc ((<- x l)
(<- y (permute (-- l `(,x)))))
(cons x y))))