ets/table/ordered_set

Types

pub type OrderedSet(k, v) =
  ordered_set.OrderedSet(k, v)

Functions

pub fn delete(set: OrderedSet(a, b), key: a) -> OrderedSet(a, b)

Delete all objects with key key from the table.

pub fn insert(set: OrderedSet(a, b), key: a, value: b) -> OrderedSet(
  a,
  b,
)

Insert a value into the ets table.

pub fn lookup(set: OrderedSet(a, b), key: a) -> Result(
  List(#(a, b)),
  Nil,
)

Retrieve a value from the ets table. Return an error if the value could not be found.

pub fn table(set: OrderedSet(a, b)) -> Table(a, b)

Return the table for this set object.

Search Document