Re: range code doesn't work for multi-array

2019-12-16 Thread mipri via Digitalmars-d-learn
On Tuesday, 17 December 2019 at 07:40:28 UTC, AlphaPurned wrote: if arr is a single array the follow code works(removing [i]) but if it is a double array it fails. arr as type double[A][B]. arr[i] has type double[A]. v ~= arr[i].map!(a=>to!string(a)~",").join; with `Range = double[21]` m

range code doesn't work for multi-array

2019-12-16 Thread AlphaPurned via Digitalmars-d-learn
if arr is a single array the follow code works(removing [i]) but if it is a double array it fails. arr as type double[A][B]. arr[i] has type double[A]. v ~= arr[i].map!(a=>to!string(a)~",").join; with `Range = double[21]` must satisfy the following constraint: ` isInputRange!(Unqua