dexts v0.3.1 Dexts.Dict

Summary

Functions

Read the terms in the given slot, see ets:slot

Check if the table is a bag

Clear the contents of the table, see dets:delete_all_objects

Close the table, see dets:close

Get the number of terms in the table

Count the number of terms matching the match_spec, see ets:select_count

Check if the table is a duplicate bag

Get the first key in table, see ets:first

Fold the table from the left, see ets:foldl

Fold the table from the right, see ets:foldr

Get info about the table, see dets:info

Get info about the table, see dets:info

Match terms from the table with the given pattern, see ets:match

Wrap a table or create one with the passed options

Wrap a table or create one with the passed options

Get the next key in the table, see ets:next

Open an already existing table

Open an already existing table

Select terms in the table using a match_spec, see ets:select

Check if the table is a set

Types

t

Functions

at(dict, slot)

Specs

at(integer, t) :: [term]

Read the terms in the given slot, see ets:slot.

bag?(dict)

Specs

bag?(t) :: boolean

Check if the table is a bag.

clear(dict)

Clear the contents of the table, see dets:delete_all_objects.

close(dict)

Close the table, see dets:close.

count(dict)

Specs

count(t) :: non_neg_integer

Get the number of terms in the table.

count(dict, spec)

Specs

count(t, any) :: non_neg_integer

Count the number of terms matching the match_spec, see ets:select_count.

delete(dict, key_or_pattern)
duplicate_bag?(dict)

Specs

duplicate_bag?(t) :: boolean

Check if the table is a duplicate bag.

fetch(dict, key)
first(dict)

Specs

first(t) :: any

Get the first key in table, see ets:first.

foldl(dict, acc, fun)

Specs

foldl(t, any, (term, any -> any)) :: any

Fold the table from the left, see ets:foldl.

foldr(dict, acc, fun)

Specs

foldr(t, any, (term, any -> any)) :: any

Fold the table from the right, see ets:foldr.

info(dict)

Specs

info(t) :: [any] | nil

Get info about the table, see dets:info.

info(dict, key)

Specs

info(t, atom) :: any | nil

Get info about the table, see dets:info.

keys(self)
match(dict, pattern, options \\ [])

Match terms from the table with the given pattern, see ets:match.

new()
new(name, options \\ [])

Wrap a table or create one with the passed options.

new!(name, options \\ [])

Wrap a table or create one with the passed options.

next(dict, key)

Specs

next(any, t) :: any

Get the next key in the table, see ets:next.

open(name)

Open an already existing table.

open!(name)

Open an already existing table.

put(self, key, value)
select(dict, match_spec, options \\ [])

Specs

select(t, any, Keyword.t) ::
  Dexts.Selection.t |
  nil

Select terms in the table using a match_spec, see ets:select.

set?(dict)

Specs

set?(t) :: boolean

Check if the table is a set.

values(self)