Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
defmodule Units do
def add({x, :in}, {y, :in}), do: {x + y, :in}
def sub({x, :in}, {y, :in}), do: {x - y, :in}
end
Units.add({5, :in}, {4, :in})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment