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

8 lines
122 B
Text
Raw Permalink Normal View History

2016-12-05 23:44:36 +01:00
(defun permute
(('())
'(()))
((l)
(lc ((<- x l)
(<- y (permute (-- l `(,x)))))
(cons x y))))