[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Array push e pop in FILO (first in, last out) similar mode
[Thread Prev] | [Thread Next]
- Subject: Array push e pop in FILO (first in, last out) similar mode
- From: akrobaticone <akrobaticone@xxxxxxxxx>
- Date: Fri, 17 Jul 2026 13:54:09 +0000
- To: "user@xxxxxxxxxxxxxxxxxxxxxx" <user@xxxxxxxxxxxxxxxxxxxxxx>
Hello, I need to manage a predefined-size array with FILO (First In Last Out) similar modes. Every time I insert a data item, it's placed at position 0 and the others are incremented by one position. The first inserted item is then deleted once it reaches the top. Obtaining this function from code is fairly simple, but it might be useful to have a built-in function that performs this mode. For example, array.push(data, FILO_mode) The same function, in reverse, could be used to retrieve the data. array.pop(data, FILO_mode) I don't know if this functionality can be implemented with the current methods. I hope I've been clear. Michele Io scrivo da Linux Mint Inviato con la posta elettronica sicura [Proton Mail](https://proton.me/mail/home).
| Re: Array push e pop in FILO (first in, last out) similar mode | Bruce Steers <bsteers4@xxxxxxxxx> |