Skip to content

Instantly share code, notes, and snippets.

@jeremy-w
Created August 30, 2013 20:13
Show Gist options
  • Save jeremy-w/6393840 to your computer and use it in GitHub Desktop.
Save jeremy-w/6393840 to your computer and use it in GitHub Desktop.
defmodule Test do
def test(a, b, c) do
case true do
a == b && b == c -> :equilateral
a == b || b == c -> :isosceles
_ -> :scalene
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment