Set a named child
lib callCapy
function set(dest : dval, key : string, value : as dval) dval
Description
set(dest, key, value) stores value at key. It changes and returns dest.
Parameters
dest : target value
key : child key
value : value to store
Return Values
The changed target value.
Example
Capy
var user := dval({})
user = set(user, "name", "Ada")
print(user.name, "\n")