README.md
# HoodMelville
[](https://travis-ci.com/IRog/hood_melville)
[](https://opensource.org/licenses/MIT)
[](https://hex.pm/packages/hood_melville)
[](https://hexdocs.pm/hood_melville/)
## Description
Real-time purely functional persistent (in the data-structure sense not that it's goes to disk) queue. Will never get into a bad state unlike the erlang queue although has lower throughput for good states. Trades latency for throughput.
## Installation
[available in Hex](https://hex.pm/packages/hood_melville), the package can be installed
by adding `hood_melville` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:hood_melville, "~> 0.1.0"}
]
end
```
```elixir
queue =
HoodMelville.new()
|> HoodMelville.insert("sample")
HoodMelville.get(queue)
```
See the linked docs for more function info and/or /tests