Nodes setter
Last updated
Last updated
[data/tree/Nodes setter]
Immutably stores the specified nodes on the specified paths of the tree. Example:
tree
receives
{"a": "a"}@0
path
receives
[
["a", "b"],
["a", "c"]
]@0
nodes
receives
[0,1]@0
tree
sends
{
"a": {
"b" : 0,
"c": 1
}
}@0
Keywords: object, field, setter
tree: any
Receives tree data structure in which to store a node. Example: {"a": "a"}
paths: (string or number)[][]
Receives the location of the nodes. Example: [ ["a", "b"], ["a", "c"] ]
nodes: any[]
Receives nodes to be stored in the tree. Example: [0,1]
tree: any
Sends updated tree data structure. Example: { "a": { "b" : 0, "c": 1 } }