StructCopy
Method Signature
StructCopy(struct=[structloose])Arguments
Argument
Type
Required
Description
Default
Examples
Copy a structure and change it. Original structure stays unchanged
myStruct = {
"a" : 1,
"b" : 2,
"c" : 3
};
myNewStruct = structCopy( myStruct );
myNewStruct.B = 5;
myNewStruct[ "d" ] = 4;
structDelete( myNewStruct, "c" );
writeOutput( structKeyList( myStruct ) & " → " & structKeyList( myNewStruct ) );
Additional Examples
Related
Last updated
Was this helpful?
