From: Xavier Noria Date: 2007-04-30T18:21:08+09:00 Subject: Re: cyclic array On Apr 30, 2007, at 11:13 AM, Xavier Noria wrote: >> This method won't work for Enumerables in general, although I >> guess it >> does work for Arrays. >> >> Not all enumerables have one or both length or [] methods. > > Oh right, thank you. I don't know why ri Enumerable lists length > here, looks like it is getting non-core methods from somewhere > else. I overlooked [] though. The OP wanted this for an Array, it > would certainly work there. By "there" I mean defining that method in Array, leaving the definition in Enumerable is broken. -- fxn