Resize 2 dimensional arrays

About Monkey 2 Forums Monkey 2 Code Library Resize 2 dimensional arrays

This topic contains 0 replies, has 1 voice, and was last updated by  TomToad 1 year, 9 months ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #9407

    TomToad
    Participant

    Currently, Monkey2 has no way to resize a 2 dimensional array without creating a new one (thus destroying the contents of the old one). This little snippet shows how you can resize any 2 dimensional array while retaining the contents, should be easy enough to modify for arrays of higher dimensions.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.