Opinionated bindings to erlang's ets tables.
If you aren't familiar with ets tables, this is a good introduction.
import gleam/io
import ets/builder
import ets/table/set
pub fn main() {
let set: set.Set(String, String) =
builder.new("table_name")
|> builder.set()
set
|> set.insert("hello", "world")
set
|> set.lookup("hello")
|> set.debug
}
This package is available on hex:
gleam add gts
Its documentation can be found at https://hexdocs.pm/gts.