Skip to content

Lunarmagpie/gts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gts

Package Version Hex Docs

Opinionated bindings to erlang's ets tables.

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 gts

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

About

ets table bindings in gleam

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages