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
The problem is in the implementation of the Leading class in Iterator.span, which doesn't remember that the test condition (p(self.head) == false) has already been reached.
A solution is to add a class variable var finished = false, which is set when the condition fails in advance():
Example code:
Expected result:
Actual result:
The problem is in the implementation of the
Leading
class inIterator.span
, which doesn't remember that the test condition (p(self.head) == false
) has already been reached.A solution is to add a class variable
var finished = false
, which is set when the condition fails inadvance()
:The implementation remains non-thread-safe.
The text was updated successfully, but these errors were encountered: