README.md

# Nephrotoma

[![Package Version](https://img.shields.io/hexpm/v/nephrotoma)](https://hex.pm/packages/nephrotoma)
[![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/nephrotoma/)

```sh
gleam add nephrotoma@1
```
```gleam
import nephrotoma
import gleam/string

pub fn main() {
  let tree = nephrotoma.from_list(string.to_graphemes("hello, world!"))
  |> nephrotoma.append_list(string.to_graphemes("hi!"))
  let assert True = nephrotoma.exists(tree, "hello, world!")
  let assert False = nephrotoma.exists(tree, "hello")
}
```

## What is this for?

This is a library for checking whether a list exists in a list of lists.

### Why not just check one by one?

Checking one by one can be expensive. This library is designed for if you need to perform a large amount of checks.

### So I should always use this?

Creating the initial tree is also expensive, so this may not be fit for the job. **Also, this was made in an afternoon. It is not at all optimized.**

## What does Nephrotoma mean?

[It's a genus of crane flies.](https://en.wikipedia.org/wiki/Nephrotoma)

### Why did you name a project off of a genus of crane flies?

I don't know. They have long legs, I guess, reminding me of trees?

## Development

```sh
gleam run   # Run the project
gleam test  # Run the tests
```