remove

Remove dictionary entries.

📝 Syntax

  • db = remove(da, key)

📥 Input argument

  • da - scalar: a dictionary object.

  • key - scalar or array: key

📤 Output argument

  • db - scalar: a dictionary object.

📄 Description

db = remove(da, key) deletes the entry associated with the key from dictionary da.

d = remove(d, key) is equivalent to d[key] = [].

💡 Example

names = ["Apple" "Banana" "Kiwi"];
wheels = [1 2 3];
d = dictionary(wheels, names)
d = remove(d, 2)

🔗 See also

dictionary, insert, lookup.

🕔 History

Version
📄 Description

1.5.0

initial version

Last updated

Was this helpful?