pushnew
Push if it isn’t there already
> (setq a (list 1 (2 3) (4 5)))
(1 (2 3) (4 5))
> (pushnew 9 (second a))
(9 2 3)
> a
(1 (9 2 3) (4 5))
> (pushnew 9 (second a))
(9 2 3)
Previous slide
Next slide
Back to first slide
View graphic version