\ FIFO vandys
only extensions definitions
List -> subclass: FIFO
FIFO -> :method push ( elem fifo -- ) super-> add method;
FIFO -> :method pop { self -- elem } 0 self -> @ { elem }
elem self -> remove elem method;
vandys
FIFO is a List where elements come and go in first-in-first-out order
:method push Add an element to the tail of the list
:method pop Remove an element from the head of the list... if needed
for efficiency, we can easily avoid the overhead of List:remove