Ticket #78 (closed defect: wontfix)
Fix iterator behavior
| Reported by: | mooneer | Owned by: | mooneer |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | interpreter | Version: | |
| Keywords: | Cc: |
Description
Iterators aren't as intuitive as in other languages. This should be fixed.
Change History
Note: See
TracTickets for help on using
tickets.

Reviewed the current iterator behavior. It's as follows:
reset = point iterator to first element. Do not return a value.
cur = return null if at the end of the list, or if not initialized. Else print current value of iterator.
next = return true if there was another element and we've moved to it, false otherwise.
This means something like this:
which is acceptable. Will not fix.