_ShiftCreate

Creates a shift register (FIFO) for pushing and popping values

Lists.au3
_ShiftCreate()

parameters

none

return value

array value Shift register array as handle

related

_ShiftIsShift, _ShiftToArray, _ArrayToShift

example

Local $aMyShift = _ShiftCreate()
_ShiftPush( $aMyShift, "qwerty" ) ; into first position
_ShiftPush( $aMyShift, "abcde" ) ; into first position
....
If Not _ShiftIsEmpty( $aMyShift ) Then $Value = _ShiftPop( $aMyShift ) ; $Value = qwerty (last value)