From: gotoken@... (GOTO Kentaro) Date: 2000-01-28T09:52:08+09:00 Subject: [ruby-talk:01189] Re: Enumerable and index In message "[ruby-talk:01188] Enumerable and index" on 00/01/27, Dave Thomas writes: >Should there be a method Enumerable#index? It's documented in the 1.4 >html, and array and hash implement an override, but it doesn't seem to >be in enum.c. `index' is not helpful because one cannot access the object after calling of `each' via `index' for some classes, e.g., IO. It was the reason of discarding, maybe. `size' and `length' were obsoleted too. However, we have another option, i.e., !IO