[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Array push e pop in FILO (first in, last out) similar mode
[Thread Prev] | [Thread Next]
- Subject: Re: Array push e pop in FILO (first in, last out) similar mode
- From: akrobaticone <akrobaticone@xxxxxxxxx>
- Date: Sat, 18 Jul 2026 06:51:29 +0000
- To: "user@xxxxxxxxxxxxxxxxxxxxxx" <user@xxxxxxxxxxxxxxxxxxxxxx>
Exactly like that It was so simple I didn't think about it Thanks >Like this? >Push to first >MyArray.Add(Data, 0) >Pop from first>Data = MyArray.Extract(0, 1)[0] >BruceS Io scrivo da Linux Mint Inviato con la posta elettronica sicura [Proton Mail](https://proton.me/mail/home). venerdì 17 luglio 2026 16:41, Bruce Steers <bsteers4@xxxxxxxxx> ha scritto: > On Fri, 17 Jul 2026, 14:54 akrobaticone, <akrobaticone@xxxxxxxxx> wrote: > >> 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 > > Like this? > Push to first > MyArray.Add(Data, 0) > > Pop from first > Data = MyArray.Extract(0, 1)[0] > > Respects > BruceS
| Array push e pop in FILO (first in, last out) similar mode | akrobaticone <akrobaticone@xxxxxxxxx> |
| Re: Array push e pop in FILO (first in, last out) similar mode | Bruce Steers <bsteers4@xxxxxxxxx> |