is array an InputRange?

ref2401 refactor24 at gmail.com
Fri Oct 5 06:28:06 PDT 2012


import std.range;

int[] numbers = [1, 3, 5, 7, 9, 11];

auto rangeObject = inputRangeObject(numbers);
auto inputRange = cast(InputRange!(int[]))rangeObject;

why does 'inputRange' equal null?



More information about the Digitalmars-d-learn mailing list