Skip to content

Instantly share code, notes, and snippets.

View Liru's full-sized avatar

Liru Wilkowski Liru

  • Toronto, ON, Canada
View GitHub Profile
defmodule GreekTax.Helper do
@moduledoc false
import NimbleParsec
@number [?0..?9]
def sep_number(sep) do
ascii_string(@number, 3)
|> ignore(string(sep))
|> ascii_string(@number, 5)
defmodule Exercise do
def gcd(x, 0), do: x
def gcd(x, y) do
IO.puts("gcd(#{x}, #{y})")
gcd(y, rem(x,y))
end
end