fn remove_sym_from_props<'ob>(
sym: Gc<ObjectType<'ob>>,
props: Gc<ObjectType<'ob>>,
) -> Result<Gc<ObjectType<'ob>>>
Expand description
Removes all occurrences of sym
from the property list props
.
This function scans through a property list (a cons cell chain) and removes any
pairs where the car matches sym
. The property list is modified in-place.
§Arguments
sym
- The symbol to remove from the property listprops
- The property list to modify (must be a cons cell chain)
§Returns
Returns the modified property list with all occurrences of sym
removed.
If the input is not a cons cell, returns a TypeError.