What's a good way of keeping an array (or a list of numbers) a given length? for example: i want to have a list of 8 numbers and when i add a new one, all entries should shift in place and the last one should be removed.
ListAddFirst seems to be a nice way to do this, but for removing the last item, i need a reference to that one and B3D-style (something like last:Item = last Item) doesn't seem to work in Bmax.
What's an efficient way to do this?
ListAddFirst seems to be a nice way to do this, but for removing the last item, i need a reference to that one and B3D-style (something like last:Item = last Item) doesn't seem to work in Bmax.
What's an efficient way to do this?