Dec. 15, 2012
10:45 p.m.
and i always hitting the wall with my head again and again.. because there's no such protocol and instead (after opening browser and looking at class, i figuring that i should use #first/#last, but it is completely unintuitive to me)..
Me too, when I was using what I knew would only ever need to be, simply, an Interval. Later the complexity increased and it would be either a Interval or Array of numbers. It was a transparent / painless improvement. After gaining that appreciation, now I think of Intervals as just "efficient Arrays" and think naturally to use #first / #last.