Skip to content

Instantly share code, notes, and snippets.

@SophieDeBenedetto
Created December 7, 2020 21:34
Show Gist options
  • Select an option

  • Save SophieDeBenedetto/f8715581a00667978cb6bab0edb321ff to your computer and use it in GitHub Desktop.

Select an option

Save SophieDeBenedetto/f8715581a00667978cb6bab0edb321ff to your computer and use it in GitHub Desktop.
defp get_two([first | [second | _rest]]) when first + second == @sum do
first * second
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment