struct.update()
Updates a key with a value.
struct.update( key=string, value=any )
Returns: Struct
| Argument | Description |
|---|---|
|
key
string,
required
|
edit
Key, the value of which to update |
|
value
any,
required
|
edit
New value |
Examples
edit world = {
save:"water",
plant:"trees",
clean:"waste"
};
writedump(world);
updateStruct = structupdate(world,"clean","room");
writeDump(updatestruct);