JavaScript
Iterators and Generators: The Machinery Behind for...of
How the iterator protocol and generator functions work under the hood, and where they solve real problems like pagination and lazy sequences.
3 min read
Tag
2 articles
How the iterator protocol and generator functions work under the hood, and where they solve real problems like pagination and lazy sequences.
HashMap's average O(1) performance depends on assumptions about hash distribution and load factor that are worth understanding before they're violated.