Last active
October 21, 2015 23:16
-
-
Save mzemel/47699cbf60389e9ee95a to your computer and use it in GitHub Desktop.
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
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