Name

remove()

Class

IntDict

Description

Remove a key/value pair.

Examples

  • IntDict inventory;
    
    void setup() {
      size(200, 200);
      inventory = new IntDict();
      inventory.set("cd", 84);
      inventory.set("tapes", 15);
      inventory.set("records", 102);
      println(inventory);  // Full inventory
      inventory.remove("tapes");
      println(inventory);  // Tapes are removed from list
    }
    
    

Syntax

  • .remove(key)

Return

  • int