From: "Hal E. Fulton" Date: 2002-08-07T00:07:36+09:00 Subject: Re: Super-iterator? (long) ----- Original Message ----- From: "Hugh Sasse Staff Elec Eng" To: "ruby-talk ML" Sent: Tuesday, August 06, 2002 4:37 AM Subject: Re: Super-iterator? (long) > How about deleting odd? and even? and having: > > def mod?(x) Interesting. I'd probably have both. I think 90% of the time (for me) I'm just concerned with "every other" iteration. And that's when I care at all, which is less than 10% of the time. > Someone else made this point about next updating count. > I'd suggest next and next! to overcome this. Interesting. I can see that. > Should there be an inspect that tells you about @count_ as well? inspect was just there for my experimenting convenience... what it should be remains to be seen. Thanks, Hal