exts v0.3.2 Exts.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 ets:delete_all_objects
Get the number of terms in the table
Count the number of terms matching the match_spec, see ets:select_count
Delete the term matching the given match_spec or key, see
ets:select_delete
and ets:delete
Destroy the table, see ets:delete
Dump the table to a file
Dump the table to a file, raising if there’s a problem while doing so
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
Give the table to another process, optionally passing data to give to the
process, see ets:give_away
Get info about the table, see ets:info
Get info about the table, see ets:info
Get the last key in the table, see ets:last
Load a table from a file, see ets:file2tab
Load a table from a file, raising if there’s a problem with the file, see
ets:file2tab
Match terms from the table with the given pattern, see ets:match
Match terms from the given table with the given pattern and options, see
ets:match
Create a new table with default options
Wrap a table or create one with the passed options
Get the next key in the table, see ets:next
Check if the table is an ordered set
Get the previous key in the table, see ets:prev
Protect a table for safe iteration
Rename the table to the given atom, see ets:rename
Select terms in the table using a match_spec, traversing in reverse, see
ets:select_reverse
Select terms in the table using a match_spec, see ets:select
Check if the table is a set
Convert the table to a list, see ets:tab2list
Unprotect a table from safe iteration
Types
Functions
Specs
count(t, any) :: non_neg_integer
Count the number of terms matching the match_spec, see ets:select_count
.
Specs
delete(t, any) :: true
Delete the term matching the given match_spec or key, see
ets:select_delete
and ets:delete
.
Dump the table to a file.
Dump the table to a file, raising if there’s a problem while doing so.
Specs
foldl(t, any, (term, any -> any)) :: any
Fold the table from the left, see ets:foldl
.
Specs
foldr(t, any, (term, any -> any)) :: any
Fold the table from the right, see ets:foldr
.
Specs
give_to(t, pid, any) :: true
Give the table to another process, optionally passing data to give to the
process, see ets:give_away
.
Load a table from a file, see ets:file2tab
.
Load a table from a file, raising if there’s a problem with the file, see
ets:file2tab
.
Specs
match(t, any) :: Exts.Selection.t | nil
Match terms from the table with the given pattern, see ets:match
.
Specs
match(t, any, Keyword.t) :: Exts.Selection.t | nil
Match terms from the given table with the given pattern and options, see
ets:match
.
Options
:whole
when true it returns the whole term.:delete
when true it deletes the matching terms instead of returning them.:limit
the amount of elements to select at a time.
Wrap a table or create one with the passed options.
Specs
rename(atom, t) :: atom
Rename the table to the given atom, see ets:rename
.
Select terms in the table using a match_spec, traversing in reverse, see
ets:select_reverse
.
Specs
select(t, any, Keyword.t) :: Exts.Selection.t | nil
Select terms in the table using a match_spec, see ets:select
.