key # if so then increment value # if not then add key and init # value to 1 def increment(d, k): if k in d: d[k] += 1 else: d[k] = 1 Thursday, August 2, 12
if so then increment value * if not then add key and init * value to 1 */ function increment(d, k) { if (k in d) { d[k] += 1; } else { d[k] = 1; } } Thursday, August 2, 12