> For the complete documentation index, see [llms.txt](https://trizen.gitbook.io/sidef-lang/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://trizen.gitbook.io/sidef-lang/programming_tasks/q/queue/usage.md).

# Usage

```ruby
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
```
