2D jagged arrays?
BlitzMax Forums/BlitzMax Beginners Area/2D jagged arrays?
| ||
Is it possible to create a 2D jagged array in bm? For instance, a bit of pseudo-ish codelocal arr:myobj[][4] arr[0] = myobj[]( mylist1.ToArray( ) ) ... arr[3] = myobj[]( mylist4.ToArray( ) ) so basically I want an array with a fixed length first dimension and different length second dimension. It's ok I got it, the above code works. |
| ||
Kind of. An array of arrays will give you this functionality. |
| ||
Posted at the same time, yeah I figured it out cheers mate. |