On 15 December 2012 23:45, Chris Muller <[email protected]> wrote:
>> 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.
>

Well, my math background prevents me from thinking this way.
Since in math, intervals are defined on sets of numbers.
(like Real set).. you cannot treat it as array , simply because there
is an infinite number
of values inside any non-empty interval, and you cannot enumerate them.

-- 
Best regards,
Igor Stasenko.

Reply via email to