polygonal/ds

HashSetIterator hasNext and next inconsistent?

Closed this issue · 0 comments

I noticed this when I dropped in HashSet for a variable that was originally a ListSet: HashSetIterator appears to increment when hasNext() is called, whereas DAIterator increments on next().

Is there a reason for this? Doesn't seem intuitive to me.

I'm using the version that comes from haxelib, as of writing, but it looks like the same thing's happening in master.