You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It causes the flatMap iterator helper's .throw(exc) method to forward the exception along to the inner iterator (consistent with other iterator helpers). Currently the inner iterator is instead closed, and exc is then thrown again.
It causes the flatMap iterator helper's .next(value) method to forward the value along to the inner iterator. Currently the inner iterator's .next() method is always called with no arguments.
The text was updated successfully, but these errors were encountered:
@Jack-Works I think the current version is indeed calling mapper<T> not mapper<Q>. That would be in line with what Array.prototype.flatMap does at least.
Currently
Iterator.prototype.flatMap
is specified roughly like this:Arguably it should be more like this:
This changes two details of behavior:
.throw(exc)
method to forward the exception along to the inner iterator (consistent with other iterator helpers). Currently the inner iterator is instead closed, andexc
is then thrown again..next(value)
method to forward the value along to the inner iterator. Currently the inner iterator's.next()
method is always called with no arguments.The text was updated successfully, but these errors were encountered: