From: Stefan Walk Date: 2006-01-15T01:03:59+09:00 Subject: Re: Range#member? Oddity ara.t.howard@noaa.gov wrote: > On Sat, 14 Jan 2006, Stefan Walk wrote: > but enumerable means neither monotonically increasing nor finite. so > that a > range includes enumerable means only that one may start, but perhaps never > finish, to count the elements in the range. i think this is accurate isn't > it? > > cheers. > > -a Enumerable means that you can map the natural numbers to your set in an invertable way, and that's not possible for ranges of real numbers. Being enumerable means the possibility of a "succ" operation, and therefore of traversing the whole set with "each" (which may take infinite time). Being enumerable implies a working each, now try (1.0..2.0).each... Regards, Stefan