(rontolisp) docs
← Functions

nsubstitute-if

(nsubstitute-if new predicate list &key key)

The destructive variant of substitute-if: rewrites the car of every cons whose element satisfies the predicate and returns the (possibly mutated) original list. The cons cells are reused, so any other reference to the list observes the change. Lists only — unlike substitute-if it does not rebuild strings or vectors.