Reference+
Name
size()
Class
IntDict
Description
Returns the number of key/value pairs
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); int s = inventory.size(); println(s); }
Syntax
.size()
Return
int

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.