- Home /
Question by
Kiloblargh · Mar 02, 2012 at 10:04 PM ·
listgenericsnested
Tried to make a List.>(), it doesn't work, so how do I do that?
The compiler doesn't like it- I get the error;
expecting >, found '>>'.
But I thought a generic list could be a list of anything, even of other lists, so
var masterList : List.<List.<whatev>>;
should be valid... I'm just not declaring it the right way?
An array of arrays seems to work fine but I need the size to vary.
Comment
And yes, I know all the cool kids are using C#; but I'm almost done with this game and have written the whole thing in JS so fa, so I don't want to waste any time on a mid-stream horse-switch when it's not absolutely necessary...