From: Nikolai Weibull Date: 2010-09-17T20:10:20+09:00 Subject: [ruby-core:32456] Re: [ruby-core:32455] Re: Why doesn’t Enumerable define a #last method? On Fri, Sep 17, 2010 at 13:00, Urabe Shyouhei wrote: > (2010/09/17 19:19), Nikolai Weibull wrote: >> Why doesn���t Enumerable define a #last method that���s analogous to #first? > > Simplest counterexample is [1].cycle.last I wouldn���t say that that example counters the validity of having #last in Enumerable. I mean, sure, there���s 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.