I'm attempting to create a BuiltIn Array wrapper in order to make a Circular Buffer, I basically want a class that acts just like an array... although when you Add it checks the maximum length and Shifts the first item if the length is exceeded.
What would be the best approach to this?
asked Jun 14 '12 at 08:05 AM
It's a slow day, thought I'd write you one. You can use it from JS but I wrote it in C# as I wanted to create a generic version. Hence you should put this in a CS file and place it in a Plugins folder to access it from JS.
If you choose to use insert, be aware that inserting at 0 will cause it to be immediately deleted if the list is at capacity.