jastrachan | 12 Apr 16:01 2005

Re: [groovy-dev] 0..<0 not empty

On 12 Apr 2005, at 14:59, Dierk Koenig wrote:
>> We currently only support integer based stepping right now.
> I would like to base the stepping logic on the
> next() method for normal ranges and on
> previous() for reverse Ranges.
> step(2) would then call next() two times

It might be better to use  a step object that is added to the current 
element - such as for step(0.1). So we treat normal 
incrementing/decrementing ranges by one as a special case - the rest we 
are adding some stepValue as we go along the range.