refactor: rename DTree to DValue

This commit is contained in:
udo
2026-06-12 11:05:52 +00:00
parent 941f5aea08
commit 7066da3cde
157 changed files with 1203 additions and 1074 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
:sig
StringMap array_merge(StringMap a, StringMap b)
DTree array_merge(DTree a, DTree b)
DValue array_merge(DValue a, DValue b)
:params
a : left-hand source map or tree
@@ -9,7 +9,7 @@ return value : merged result
:see
>types
0_DTree
0_DValue
StringMap
json_decode
@@ -18,7 +18,7 @@ Merges two maps or trees using PHP-like merge behavior.
For `StringMap`, keys from `b` overwrite keys from `a`.
For `DTree`, string keys from `b` overwrite keys from `a`. Numeric keys are appended and reindexed when either side behaves like a list.
For `DValue`, string keys from `b` overwrite keys from `a`. Numeric keys are appended and reindexed when either side behaves like a list.
This helper is the closest UCE equivalent to PHP `array_merge()` for common request, config, and JSON-shaped data.