Transforming a range back to the original type?

Simen Kjaeraas simen.kjaras at gmail.com
Thu May 3 06:55:53 PDT 2012


On Thu, 03 May 2012 13:17:40 +0200, Jacob Carlborg <doob at me.com> wrote:

> On 2012-05-03 09:43, Simen Kjaeraas wrote:
>
>> In addition to std.array.array, as others have pointed out,
>> there is also std.range.InputRangeObject.
>
> I'm not sure if I understand what InputRangeObject does. But I don't  
> think it does what I want.

It basically wraps a range in a class interface. This allows you to use
InputRangeObject!T instead of T[]. I've never used it, so I'm not sure
what it does or how it does it.


More information about the Digitalmars-d-learn mailing list