Generating permutations in Lisp withous map functions

后端 未结 0 1378
猫巷女王i
猫巷女王i 2020-12-22 04:48

I want to generate in Lisp the list of all permutations of a set. This is what I tried:

(defun ins(e n l)
    (cond
        ((equal n 1) (cons e l))
        (         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题