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
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: go-pkg/expr#1
No description provided.