4 ms·
Its kind of confusing that the author use JS objects (aka hashes) as an entry inside the HashMap he's building. I think building the concept of a hash from the
by koromak 3y ago
Its kind of confusing that the author use JS objects (aka hashes) as an entry inside the HashMap he's building. I think building the concept of a hash from the ground up would be more illuminating.
- samwho 3y agoI agonised over this. I did originally have a version that used 2-element arrays instead, but the resulting code felt more dense and hard to follow. I figured that people who know enough to point this out already know what's up. People who don't will benefit from the code being easier to read.