in reply to Summing repeated counts for items stored in separate file

I would suggest that your method as documented is both clear and concise. Remember that you are developing code that may need maintenance in months or years by you or someone else. You could play all sorts of obfuscation tricks that look more efficient, but the result will be inflexible code that is hard to read and maintain.

  • Comment on Re: Summing repeated counts for items stored in separate file