An inferior solution to range() is '(1:N) .+ i'. [without the parens, it's parsed as 1:(N .+ i) ]
On Wednesday, April 29, 2015 at 10:22:23 AM UTC-4, Sebastian Good wrote: > > I find myself creating ranges of the form i:i+num-1. That is, the ith > thing, and num more. Whenever I see a +1 or -1 I worry about careless off > by one errors, so I wonder if there is a function or operator to capture > this idiom, or open and closed ranges in general? >