(defun foo (x) (if (endp l) nil (foo (append (first l) (list x)))))