← Back to team overview

zorba-coders team mailing list archive

Re: [Merge] lp:~zorba-coders/zorba/pub_iter_imp into lp:zorba

 

I've implemented TreatIterator::count(), but it's not clear what skip() should do, exactly.  Should it just call its' child's skip()?  Should it do some other checks?  If so, what?

The problem is that skip() only reports whether there are *more* left, not how many are left.

What if the sequence has 5 elements, you tell it to skip 4, and the quantifier is 1?  Is that invalid (because there were originally 5) or valid (because there is now exactly 1 left)?

(You can construct similar "what if" questions for the other quantifiers as well.)

-- 
https://code.launchpad.net/~zorba-coders/zorba/pub_iter_imp/+merge/201708
Your team Zorba Coders is subscribed to branch lp:zorba.


References