nlattessi

Seminario_TP4_EJ08

May 23rd, 2012
18
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 0.17 KB | None | 0 0
  1. (defun dupli1 (l)
  2.     (if (atom l)
  3.         l
  4.         (append l (mapcar 'dupli1 l))
  5.     )
  6. )
  7.  
  8. (defun dupli2 (l)
  9.     (if (listp l)
  10.         (append (mapcar 'dupli2 l) (mapcar 'dupli2 l))
  11.         l
  12.     )
  13. )
Advertisement
Add Comment
Please, Sign In to add comment