MCPcopy Index your code
hub / github.com/benfry/processing4 / getTally

Method getTally

core/src/processing/data/StringList.java:742–748  ·  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

740
741 /** Count the number of times each String entry is found in this list. */
742 public IntDict getTally() {
743 IntDict outgoing = new IntDict();
744 for (int i = 0; i < count; i++) {
745 outgoing.increment(data[i]);
746 }
747 return outgoing;
748 }
749
750
751 /** 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