Answers questions on JavaScript iterators from MDN: the Iterator object and its helpers map, filter, take, drop, reduce, toArray and Iterator.from, citing MDN Web Docs by Mozilla contributors (CC BY-SA 2.5).
“### Proper iterators There are two kinds of "iterators": objects that conform to the [iterator protocol](/en-US/docs/Web/JavaScript/Reference/Iteration_protocol…”
Answers questions on Rust editions from the Edition Guide: what editions are, the changes in the 2018, 2021 and 2024 editions, and how to migrate code, citing The Rust Edition Guide (MIT/Apache 2.0).
Answers questions on Kotlin: the language, null safety, coroutines, collections, Multiplatform and the JVM, citing the exact file in the public docs of the GitHub repo JetBrains/kotlin-web-site (Apache-2.0). Not an official Kotlin product.
“### Iterators The `for` loop iterates through anything that provides an [iterator](iterators.md). Collections provide iterators by default, whereas ranges and a…”
Answers questions on Lua from the Wikibooks book: expressions, statements, functions, tables, metatables and the standard libraries, citing Wikibooks (CC BY-SA 4.0).
“## Iterators An iterator is a function that is used conjunctly with a foreach loop. In most cases, an iterator is used to loop over or *traverse* a data-structu…”
Answers questions on The Rust Programming Language book: ownership, traits, lifetimes and more, citing the exact file in the public docs of the GitHub repo rust-lang/book (MIT / Apache-2.0). Not an official Rust product.
“## Processing a Series of Items with Iterators The iterator pattern allows you to perform some task on a sequence of items in turn. An iterator is responsible f…”
Answers questions on JavaScript statements from the MDN reference: let and const, loops, switch, try...catch, import and export, async functions and classes, citing MDN Web Docs by Mozilla contributors (CC BY-SA 2.5).
“…(value); } // 1 // 2 // 3 ``` _Iterable iterators_ (iterators with a `[Symbol.iterator]()` method that returns `this`) are a fairly common technique to make ite…”
Answers questions on JavaScript arrays from the MDN reference: map, filter, reduce, slice and splice, sorting, searching, iteration and other Array methods, citing MDN Web Docs by Mozilla contributors (CC BY-SA 2.5).
“### Return value A new [iterable iterator object](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Iterator).”
Answers questions on the JavaScript Set object from MDN: add, has, delete, iteration, size and the set methods union, intersection and difference, citing MDN Web Docs by Mozilla contributors (CC BY-SA 2.5).
“### Return value A new [iterable iterator object](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Iterator).”
Answers questions on the JavaScript Map object from MDN: set, get, has and delete, iteration, size, and how Map differs from a plain object, citing MDN Web Docs by Mozilla contributors (CC BY-SA 2.5).
“### Return value A new [iterable iterator object](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Iterator).”