Advertisement
Latkoski

Множество

Aug 21st, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 0.19 KB | None | 0 0
  1. (defun mnozestvo (lista)
  2.     (cond
  3.         ((null lista) nil)
  4.         (t (cons (car lista)(remove (car lista)(mnozestvo (cdr lista)))))    
  5.     ))
  6.  
  7. (print (mnozestvo '(a b a d c b a c)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement