cleanup, docs
This commit is contained in:
@@ -22,7 +22,10 @@ For `DValue`, string keys from `b` overwrite keys from `a`. Numeric keys are app
|
||||
|
||||
This helper is the closest UCE equivalent to PHP `array_merge()` for common request, config, and JSON-shaped data.
|
||||
|
||||
## Related Concepts
|
||||
|
||||
- PHP: `array_merge()`
|
||||
- JavaScript / Node.js: object spread, `Object.assign()`, or array concatenation depending on whether the data is map-like or list-like
|
||||
:example
|
||||
StringMap left;
|
||||
left["name"] = "Ada";
|
||||
StringMap right;
|
||||
right["role"] = "admin";
|
||||
StringMap merged = array_merge(left, right);
|
||||
print(merged["name"], " ", merged["role"], "\n");
|
||||
|
||||
Reference in New Issue
Block a user