memberModify_#
- swordfish.function.memberModify_()#
Modifies one or more member objects of obj by applying a specified function with given parameters.
- Parameters:
obj (Constant) – A tuple, a dictionary with values of ANY type, or a class instance.
function (Constant) – A built-in function that accepts a mutable first parameter (e.g., append_).
indices (Constant) –
Specifies which members to modify. It can be:
A scalar: Modifies a single member
A vector: Modifies multiple members, with each element identifying a member
A tuple: Modifies one or multiple members through multi-dimensional indexing, where tuple length represents indexing depth
parameters (Constant, optional) – Indicates additional parameters passed to function after its first parameter. If function only takes a single parameter (obj), leave parameters unspecified or pass an empty tuple.