(rontolisp) docs
← Macros

pushnew

(pushnew item place &key test key)

Prepends item to the list stored in place only when it is not already a member, and stores the result back. Membership is decided as adjoin decides it: eql, or the given :test, between the item and each element, both taken through :key when one is given. Returns the (possibly unchanged) list. Like push, the place may be evaluated more than once.