Skip to content

Instantly share code, notes, and snippets.

View czogori's full-sized avatar
:octocat:
...

Arkadiusz Jaskólski czogori

:octocat:
...
  • Lodz, Poland
  • 23:04 (UTC +01:00)
View GitHub Profile
Mix.install([
{:benchee, "~> 1.0"}
])
defmodule TestRecursion do
def sum([]), do: 0
def sum([h|t]), do: h + sum(t)
end
defmodule TestTailRecursion do