Reference+
Name
size()
Class
StringDict
Description
Returns the number of key/value pairs
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); 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.