Name

remove()

Class

StringDict

Description

Remove a key/value pair

Examples

  • StringDict inventory;
    
    void setup() {
      size(200, 200);
      inventory = new StringDict();
      inventory.set("coffee","black");
      inventory.set("flour","white");
      inventory.set("tea","green");
      println(inventory);
      inventory.remove("flour");
      println(inventory);
    }
    
    

Syntax

  • .remove(key)

Return

  • String