Name

clear()

Class

IntDict

Description

Remove all entries from the data structure.

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);
      inventory.clear();
      println(inventory);
    }
    
    

Syntax

  • .clear()

Return

  • void