A narrow string is not a RandomAccessRange.On 06/27/2012 03:25 PM, Gor Gyolchanyan wrote:
Are there functions, which wrap arbitrary range types into standard
range interfaces?
I looked at the docs, but couldn't find anything.
Use case:
RandomAccessRange!dchar s = ???("Hello, world!");
--
Bye,
Gor Gyolchanyan.
RandomAccessFinite!(immutable(dchar)) s = inputRangeObject("Hello, world!"d);