|
I'm newish to Kixtart, but a long-time programmer with a recent emphasis on Perl.
I'm curious if there's any handy way to treat an array like a stack. That is, push a new element onto the front, or pop the first element off the front. Or delete an element from the middle of an array.
As far as I can see in the manual there isn't any such support. Therefore, I end up having to wrestle with manually renumbering the array indexes if I want to add something to the front (shift "1" to "2", "2" to "3", etc. etc. Gack!), and similar if I want to pop or delete. Lots and lots of manual work.
In many programming languages, these "stack-like" operations are part of an array implementation. But I can't find any reference to similar concepts with Kixstart. Perhaps it's just named something I wouldn't have guessed (?).
Any ideas?
- jnoble
|