Skip to content

Instantly share code, notes, and snippets.

Created May 22, 2015
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}
Units.add({5, :in}, {4, :in})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment