add-to-esetTransitioning Sets and Tablesdelete-etdelete-from-esetGoTo Top

delete-from-eset   item eset => deleted-p[Function]

Purpose
Delete item from eset if it is present using eq as the comparison function.

Package   :gbbopen-tools

Module   :gbbopen-tools

Arguments and values

item     An object
eset     An ESET
deleted-p     A generalized boolean

Returns
True, if item was deleted from eset; nil otherwise

See also
    add-to-eset
    in-eset
    make-eset

Examples

  > (defparameter *eset* (make-eset))
  *eset
  > (add-to-eset 'x *eset*)
  x
  > (in-eset 'x *eset*)
  x
  t
  > (delete-from-eset 'x *eset*)
  t
  > (in-eset 'x *eset*)
  nil
  nil
  > (delete-from-eset 'x *eset*)
  nil
  > 


The GBBopen Project


add-to-esetTransitioning Sets and Tablesdelete-etdelete-from-esetGoTo Top