Skip to content

Support duplicate bag in insert and lookup #1718

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 17 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion libs/estdlib/src/ets.erl
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
]).

-opaque table() :: atom | reference().
-type table_type() :: set.
-type table_type() :: set | duplicate_bag.
-type access_type() :: private | protected | public.
-type option() :: table_type() | {keypos, non_neg_integer()} | access_type().
-type options() :: [option()].
Expand Down
6 changes: 6 additions & 0 deletions src/libAtomVM/defaultatoms.def
Original file line number Diff line number Diff line change
Expand Up @@ -188,3 +188,9 @@ X(BREAK_IGNORED_ATOM, "\xD", "break_ignored")

X(SCOPE_ATOM, "\x5", "scope")
X(NOMATCH_ATOM, "\x7", "nomatch")
X(NAMED_TABLE_ATOM, "\xB", "named_table")
X(KEYPOS_ATOM, "\x6", "keypos")
X(PRIVATE_ATOM, "\x7", "private")
X(PUBLIC_ATOM, "\x6", "public")
X(DUPLICATE_BAG_ATOM, "\xd", "duplicate_bag")
X(SET_ATOM, "\x3", "set")
Loading
Loading