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
I recently noticed that the returned iterator always evaluates supplied function. Even if the iterator.next() or iterator.hasNext() is never called.
Moreover, the iterator will eagerly preload next element on iterator.getNext() call.
Both of these issues could be avoided by wrapping nextVal in Lazy. So instead of this:
I recently noticed that the returned iterator always evaluates supplied function. Even if the
iterator.next()
oriterator.hasNext()
is never called.Moreover, the iterator will eagerly preload next element on
iterator.getNext()
call.Both of these issues could be avoided by wrapping
nextVal
inLazy
. So instead of this:the following can be used:
The text was updated successfully, but these errors were encountered: