0 Members and 1 Guest are viewing this topic.
I got different results Code - Auto/Visual Lisp: [Select](defun f (l) (if (cddr l) (apply (function append) (cons (f (cdr l)) (mapcar (function (lambda (b) (mapcar (function (lambda (a) (list (car l) b a))) (cdr (member b l)))) ) (cdr l) ) ) ) ))Code - Auto/Visual Lisp: [Select](f '(1 2 3 4 5))=>> ((3 4 5) (2 3 4) (2 3 5) (2 4 5) (1 2 3) (1 2 4) (1 2 5) (1 3 4) (1 3 5) (1 4 5))(_foo '(1 2 3 4 5)) =>> ((1 2 3) (1 2 4) (1 2 5) (2 3 4) (2 3 5) (3 4 5))(test '(1 2 3 4 5))=>> ((1 2 3) (1 2 4) (1 2 5) (2 3 4) (2 3 5) (3 4 5))Is it true I realized exercise?