Class ADT.CircularList (< ValueType >)

Description

This is an circular list implemented by an array. It has a constant time complexity for pop and push. It has a limited max size but it can be increased with the methods allocate() or [set_max_size()].


Generic ValueType

__generic__ mixed ValueType = mixed


Method create

ADT.CircularList ADT.CircularList(array(ValueType)|int arg)

Description

Creates a new CircularList around the array arg or a new CircularList with the maximum size of arg.