From: Simon Strandgaard Date: 2003-11-21T05:27:16+09:00 Subject: Re: [ann] iterator 0.1 On Fri, 21 Nov 2003 03:04:48 +0900, Nikolai Weibull wrote: > * Simon Strandgaard [Nov, 20 2003 17:40]: >> We are curios to hear what your first-impression are, What do >> you want from 'iterator.rb'? What are your requirements? > my first impression is that you must really, really love iterators ;-) true > anyway, may be interesting to see how useful this is. [snip] The most interesting thing which I can think of right now, where only iterators will do, are for my Robust-Array/iterator. A Robust-iterator is a iterator which keeps pointing at the same element, even though you insert/delete elements in the same data structure. When insert/delete occur, all iterators gets notified about the delta-change. AEditor needs it. See implementation of robust-Array/iterator here: http://rubyforge.org/cgi-bin/viewcvs/cgi/viewcvs.cgi/projects/experimental/iterator2/robust.rb?rev=1.2&cvsroot=aeditor&content-type=text/vnd.viewcvs-markup See unittest of robust-Array/iterator here: http://rubyforge.org/cgi-bin/viewcvs/cgi/viewcvs.cgi/projects/experimental/iterator2/test_robust.rb?rev=1.2&cvsroot=aeditor&content-type=text/vnd.viewcvs-markup -- Simon Strandgaard