Created
December 7, 2018 16:46
-
-
Save sevenseacat/e8bcd320fb7c5cf8d1e02694e6e48110 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
iex(40)> :ets.new(:foo3, [:set, :named_table]) | |
:foo3 | |
iex(41)> :ets.insert(:foo3, {"a", 1}) | |
true | |
iex(42)> :ets.lookup(:foo3, "a") | |
[{"a", 1}] | |
iex(43)> :ets.update_counter(:foo3, "a", {0, -1, 0, 0}) | |
** (ArgumentError) argument error | |
(stdlib) :ets.update_counter(:foo3, "a", {0, -1, 0, 0}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment