Skip to content

Instantly share code, notes, and snippets.

@lagebr
Last active August 23, 2020 09:08
Show Gist options
  • Save lagebr/6d4d428369f8330652935685653fc6cf to your computer and use it in GitHub Desktop.
Save lagebr/6d4d428369f8330652935685653fc6cf to your computer and use it in GitHub Desktop.
Single counter example using ets:update_counter
T = ets:new(t, [set]).
ets:insert(T, {c, 0}),
ets:update_counter(T, c, [{2,1}]),
ets:lookup(T, c).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment