is an iterator allowed to reuse the same "state" object?

Bergi a.d.bergi at web.de
Mon Apr 27 22:34:10 UTC 2015


No, it must return a new object every time.

See 
https://esdiscuss.org/topic/performance-of-iterator-next-as-specified 
for the last discussion on this.

  Bergi


More information about the es-discuss mailing list