Skip to content

Instantly share code, notes, and snippets.

@mzemel
Last active October 21, 2015 23:16
Show Gist options
  • Save mzemel/47699cbf60389e9ee95a to your computer and use it in GitHub Desktop.
Save mzemel/47699cbf60389e9ee95a to your computer and use it in GitHub Desktop.
defmodule Calculator do
use Tracer
def concat(a, b) do
IO.puts a <> b
end
def puts_sum_three(a, b, c) do
IO.puts a + b + c
end
end
Calculator.puts_sum_three(1, 2, 3)
# ==> 'call puts_sum_three(1, 2, 3)'
# 6
# <== 'returns 6'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment