var f = FIFO() say f.empty # true f.push('foo') f.push('bar', 'baz') say f.pop # foo say f.empty # false var g = FIFO('xxx', 'yyy') say g.pop # xxx say f.pop # bar
Last updated 1 year ago