On Fri, Sep 17, 2010 at 13:00, Urabe Shyouhei <shyouhei / ruby-lang.org> wrote:
> (2010/09/17 19:19), Nikolai Weibull wrote:
>> Why doesn Enumerable define a #last method that analogous to #first?
>
> Simplest counterexample is [1].cycle.last

I wouldn say that that example counters the validity of having #last
in Enumerable.  I mean, sure, there obviously no last element in
this example, but neither can #all? be answered:

[1].cycle.all?{ |i| i == 1 }

even though it has an obvious answer.