Why Nostr? What is Njump?
2024-06-02 21:48:09

Yo Soy Freeman on Nostr: So, i want to create a wall system, i need to be able to add segments to an array, ...

So, i want to create a wall system, i need to be able to add segments to an array, but i don't want to pre allocate crazy memory, how do i work with this?

I create a new array which is one element bigger, copy everything from the older one, and put the new data in the empty slot, and then remove the old one from memory?
Author Public Key
npub1fxa8tkvnflz8tfpnsmlj728fqu8g7547nlug9kjaf8xdzdl33q4sufd7pj