the iterator's reset funtion doesn't work properly #1

Closed
opened 2024-07-10 20:03:30 +02:00 by elena · 1 comment

Example:

>>> it=$(1,2,3)
$(#3)
>>> it++
1
>>> it++
2
>>> it++
3
>>> it++
Eval Error: EOF
>>> it.reset
true
>>> it++
2

the first item after reset should be "1", not "2"

Example: ``` >>> it=$(1,2,3) $(#3) >>> it++ 1 >>> it++ 2 >>> it++ 3 >>> it++ Eval Error: EOF >>> it.reset true >>> it++ 2 ``` the first item after reset should be "1", not "2"
Owner

Fixed in v0.22.0

Fixed in v0.22.0
Sign in to join this conversation.
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: go-pkg/expr#1