decf/delete-aconsGBBopen Toolsdelq-onedelqGoTo Top

delq   item list => list[Function]

Purpose
Destructively delete all item elements from list using eq as the comparison function.

Package   :gbbopen-tools

Module   :gbbopen-tools

Arguments and values

item     An object
list     A proper list

Returns
A list from which all item elements have been deleted.

Description
Delq is a convenient shorthand for:

  (delete item (the list list) :test #'eq)
As is the case with delete, delq may modify the top-level structure of list in constructing the result-list.

See also
    atomic-delete
    counted-delete
    delq-one

Examples

  > (delq 'b '(a b c b))
  (a c)
  > (delq 'x '(a b c b))
  (a b c b)
  >


The GBBopen Project


decf/delete-aconsGBBopen Toolsdelq-onedelqGoTo Top