Advertisement
Latkoski

Множество - дупликати

Jun 6th, 2016
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 0.28 KB | None | 0 0
  1. (setq lista1 nil)
  2. (defun pomosna (lista1 lista)
  3.     (cond
  4.         ((null lista) lista1)
  5.         (t(pomosna (cons (car lista)lista1)(remove (car lista)(cdr lista))))
  6.         )
  7.     )
  8.  
  9. (defun mnozestvo (lista)
  10.     (pomosna '() lista)
  11.     )
  12.  
  13. (print (mnozestvo '(a b a d c b a c)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement