Skip to content

Instantly share code, notes, and snippets.

View busches's full-sized avatar

Scott Busche busches

  • Des Moines, Iowa
View GitHub Profile
<cfscript>
data = ['a','b','a'];
counts = {};
for (datum in data) {
if (!structKeyExists(counts, datum)) {
counts[datum] = 0;
}
counts[datum] = counts[datum]++;
}
writeDump(counts); // all zeros