3 ms·
>What's needed is a way of expressing a half-closed interval, but that's not common in programming languages (despite it being a great aid to correctly expressi
by badgar 14y ago
>What's needed is a way of expressing a half-closed interval, but that's not common in programming languages (despite it being a great aid to correctly expressing many algorithms concisely).
A slightly lesser known construction in Ruby, the ... Range operator does this.