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

8 lines
122 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
(defun permute
(('())
'(()))
((l)
(lc ((<- x l)
(<- y (permute (-- l `(,x)))))
(cons x y))))