Nodes setter
[data/tree/Nodes setter]
Immutably stores the specified nodes on the specified paths of the tree. Example:
tree
receives {"a": "a"}@0path
receives [ ["a", "b"], ["a", "c"] ]@0nodes
receives [0,1]@0tree
sends { "a": { "b" : 0, "c": 1 } }@0
Keywords: object, field, setter
Input ports
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]
Output ports
tree:
any
Sends updated tree data structure. Example: { "a": { "b" : 0, "c": 1 } }
Last updated