How to convert a chunks result to a two-dimensional array

Salih Dincer salihdb at hotmail.com
Sat Jan 15 07:01:03 UTC 2022


On Saturday, 15 January 2022 at 06:43:05 UTC, forkit wrote:
> On Saturday, 15 January 2022 at 03:48:41 UTC, Steven 
> Schveighoffer wrote:
>>
>> int[][] arrayOfArrays = iota(1,16).
>> array.chunks(5).array;
>>
>> -Steve
>
> All answers were helpful ;-)
>
> But I like this one the best,
> because I find it both easier to remember, and easier to 
> expand...

I loved it too.  I think this is because chunks() is very 
functional. I should mention this in the Turkish Forum.

Salih


More information about the Digitalmars-d-learn mailing list