RosettaCodeData/Task/Permutations/LFE/permutations-1.lfe

8 lines
122 B
Plaintext

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