RosettaCodeData/Task/Permutations/LFE/permutations-1.lfe
2023-07-01 13:44:08 -04:00

7 lines
122 B
Text

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