Queue/Definition: Difference between revisions

Content added Content deleted
m (added whitespace before the TOC (table of contents), added a ;Task: (bold) header.)
Line 2,471: Line 2,471:


Queue method: initialize ListBuffer new := l ;
Queue method: initialize ListBuffer new := l ;
Queue method: isEmpty @l isEmpty ;
Queue method: empty @l isEmpty ;
Queue method: push @l add ;
Queue method: push @l add ;
Queue method: pop @l removeFirst ;</lang>
Queue method: pop @l removeFirst ;</lang>