remove-propertiesGBBopen Toolsset-equalremove-propertyGoTo Top

remove-property   plist indicator => new-plist[Function]

Purpose
Non-destructively remove a property from a property list.

Package   :gbbopen-tools

Module   :gbbopen-tools

Arguments and values

plist     A property list
indicator     An object
new-plist     A property list

Returns
The new property list.

Description
If there is more than one instance of property in the property list, only the first one is removed.

See also
    remove-properties

Examples

  > (remove-property '(:x 1 :y 2 :z 3) :y)
  (:x 1 :z 3)
  > (remove-property '(:x 1 :y 2 :x 11 :y 12) :y)
  (:x 1 :x 11 :y 12)
  > (remove-property '(:x 1 :y 2 :z 3) :missing)
  (:x 1 :y 2 :z 3)
  >


The GBBopen Project


remove-propertiesGBBopen Toolsset-equalremove-propertyGoTo Top