Btw I think a nice test for `Iterator.from` would be if we can replace some of the logic in `Iterator.prototype.flatMap` with this function. _Originally posted by @miorel in https://github.com/code-chronicles-code/leetcode-curriculum/pull/417#discussion_r1751291029_