Returns a copy of plist with indicator and its value removed, if found.
PList is shorthand for "Property List", which a list of name-value pairs. A properly formed plist must contain an even number of items, and every odd-numbered position must contain a Name . The function does not attempt to fix an incorrect plist and will return an error if it attempts to remove a name without a value.
removeFromPList ( indicator As Name, _ plist As List ) As List
Argument | Type | Description |
---|---|---|
indicator | Name | The indicator for the pair being sought. |
plist | List | The plist containing indicator. |
Intent >removeFromPList(:a, {:a, 1, :b, 2, :c, 3}) --> {:b, 2, :c, 3}