Created
March 9, 2019 00:08
-
-
Save aharpole/dc63167506786ea7485337c18e6771a2 to your computer and use it in GitHub Desktop.
handle cast map
This file contains hidden or 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
def handle_cast(:increment, %{value: value, increment_by: increment_by}) do | |
{:ok, %{value: value + increment_by}} | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment