Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
def handle_call({:put, key, value}, _from, state) do
{:reply, :ok, Map.put(state, key, value)}
end
def handle_call({:get, key, value}, _from, state) do
{:reply, :ok, Map.get(state, key, value)}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment