<< entries | Dictionaries | isConfigured >> |
db = insert(da, key, value) |
db = insert(da, key, value, 'Overwrite', tf) |
scalar: a dictionary object.
scalar or array: key
scalar or array: value. size of key must be compatible with the size of value.
true force to Overwrite, false do not overwrite and ignore change
scalar: a dictionary object.
db = insert(da, key, value) adds the key-value pair to the dictionary da.
If the key already exists, its value is updated.
d = insert(d, key, value) is equivalent to d[key] = value.
db = insert(da, key, value, 'overwrite', tf) specifies whether to overwrite an existing value for the key based on the boolean parameter Overwrite.
names = ["Apple" "Banana" "Kiwi"];
wheels = [1 2 3];
d = dictionary(wheels, names)
d = insert(d, [2 4] ,["Orange" "Citra"], 'Overwrite', false)
Version | Description |
---|---|
1.5.0 | initial version |
Allan CORNET