[#1026] Is this a bug? — Dave Thomas <Dave@...>

18 messages 2000/01/03

[#1084] Infinite loop — Dave Thomas <Dave@...>

17 messages 2000/01/11

[#1104] The value of while... — Dave Thomas <Dave@...>

24 messages 2000/01/11

[ruby-talk:01190] Re: Enumerable and index

From: Dave Thomas <Dave@...>
Date: 2000-01-28 01:43:23 UTC
List: ruby-talk #1190
gotoken@math.sci.hokudai.ac.jp (GOTO Kentaro) writes:

> However, we have another option, i.e., !IO<Enumerable.  To discuss
> this problem, we should obtain `What is Enumerable?'.  In current
> Ruby, Enumerable means a sequential access object at least once while
> the another says Enumerable means Array interface.  Cle and Matz
> disscussed ago.  

I guess this is the difference between Iterable and
Enumerable. Iterable simply implies a .each method, while Enumerable
means that .each stops and is repeatable. So, IO would be Iterable,
and Array would be Enumerable. I guess that Enumerable < Iterable.

(And no, Iterable is most definitely _not_ a word ;-)


Dave

In This Thread