> I'm confused between using ranges to generate a lazy list and using
> them as criteria to match against.
Indeed. It was my understanding that there was a recent change to
Ranges so that they now exist primarily to be used as matching
criteria. If you wish to generate a list, the preferred approach
these days is the ... infix operator:
1 .. 100 # the range of values between 1 and 100, inclusive.
1, 2 ... 100 # a list of integers.
The ability to generate a lazy list using a Range object is now of
secondary importance, and should not be a required feature anymore.
In particular, :by was removed from Range.
Jonathan "Dataweaver" Lang