Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (defun ispushtiN (n lista)
- (pomosna n lista 1)
- )
- ;(setq lista1 nil)
- (defun pomosna (n lista brojac)
- (cond
- ((null lista) nil)
- ((eq n brojac)(pomosna n (cdr lista) 1))
- (t (cons (car lista)(pomosna n (cdr lista) (+ brojac 1))))
- )
- )
- (print(ispushtiN 2 '(1 3 2 7 4 5)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement