std-remove | ![]() |
STD-REMOVE
returns a list without all elements that are equal to x. It is used to remove all elements by value in contrast to STD-DELPOS
which removes by position. It is not destructive, it always returns a copy.
STD-REMOVE
will remove all duplicate elements, STD-DELPOS
only one at the given position.
(std-remove 0 '(0 1 2)) => (1 2) (std-remove -1 '(0 1 2)) => (0 1 2) (std-remove 0 '(0 1 0 2)) => (1 2)
x: any lisp expression.
lst: any proper list.
A list.
None.
(std-require 'STDLIST)
Defined in STDLIST