Simple casting?

Timon Gehr timon.gehr at gmx.ch
Wed Nov 27 02:39:48 UTC 2019


On 26.11.19 23:08, Taylor R Hillegeist wrote:
> On Tuesday, 26 November 2019 at 16:33:06 UTC, Timon Gehr wrote:
>>     int[][] y=x.chunkBy!((a,b)=>a==b).map!array.array;
> 
> 
> how did you know to do that?
> 

chunkBy with a binary predicate returns a range of ranges. So if I want 
an array of arrays I have to convert both the inner ranges and the outer 
range.


More information about the Digitalmars-d-learn mailing list