carpenter 🔨

Package VersionHex Docs

Bindings for Erlang’s ETS tables. Forked and updated from gts.

If you aren’t familiar with ETS tables, this is a good introduction.

Quick start

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
}

Installation

This package is available on hex:

gleam add carpenter

Its documentation can be found at https://hexdocs.pm/carpenter.