MCPcopy Index your code
hub / github.com/processing/processing / getTally

Method getTally

core/src/processing/data/StringList.java:723–729  ·  view source on GitHub ↗

Count the number of times each String entry is found in this list.

()

Source from the content-addressed store, hash-verified

721
722 /** Count the number of times each String entry is found in this list. */
723 public IntDict getTally() {
724 IntDict outgoing = new IntDict();
725 for (int i = 0; i < count; i++) {
726 outgoing.increment(data[i]);
727 }
728 return outgoing;
729 }
730
731
732 /** Create a dictionary associating each entry in this list to its index. */

Callers 2

getUniqueMethod · 0.95
getTallyMethod · 0.95

Calls 1

incrementMethod · 0.95

Tested by

no test coverage detected