Skip to content

Instantly share code, notes, and snippets.

@rrosenblum
Created January 30, 2018 13:53
Show Gist options
  • Save rrosenblum/4dbc84c916b2c36dcd8a9630eadfd632 to your computer and use it in GitHub Desktop.
Save rrosenblum/4dbc84c916b2c36dcd8a9630eadfd632 to your computer and use it in GitHub Desktop.
Output a variable in elixir. This is useful for codewars where we don't have access to the debugger.
def print_val(val) do
val |> inspect |> IO.puts
val
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment