Hacker News new | ask | show | jobs
by ant6n 699 days ago
I’m not sure why you use a dictionary with keys 0…999, instead of an array indexed 0…999.
2 comments

I was using the term dictionary for illustration purposes. Remember, this was all in the context of MapReduce. Computation within MapReduce is built around grouping values by keys, which makes dictionaries a natural way to think about many MapReduce oriented algorithms, at least for me. The key/value pairs appear as streams of two-tuples, not as dictionaries or arrays.
That's just a dict/map with less flexibility on the keys :D