Arc Forumnew | comments | leaders | submitlogin
1 point by ijoshua 6129 days ago | link | parent

A hashtable containing integer values is a common implementation for the collection data structure known as a Bag or Counted Set. The value indicates how many instances of the key appear in the collection. Incrementing the value would be equivalent to adding a member instance. Giving a zero default is a shortcut to avoid having to check for membership.