Clear a dynamic value
lib callCapy
function clear(value : dval) dval
Description
clear(value) removes all children and makes value an empty map.
Parameters
value : target value
Return Values
The cleared target value.
Example
Capy
var value := dval({"name": "Ada"})
value = clear(value)
print(has(value, "name"), "\n")