Increases the value of a counter in the map
dec(map, term, integer | float) :: map
Increases the value of a counter in the map.
iex> alias Crawlie.Stats.Counter iex> stats = %{foo: 10, bar: 20.0} iex> stats ...> |> Counter.dec(:foo) ...> |> Counter.dec(:bar, 2.0) %{foo: 9, bar: 18.0}
inc(map, term, integer | float) :: map
iex> alias Crawlie.Stats.Counter iex> stats = %{foo: 10, bar: 20.0} iex> stats ...> |> Counter.inc(:foo) ...> |> Counter.inc(:bar, 2.0) %{foo: 11, bar: 22.0}