Skip to content

Instantly share code, notes, and snippets.

@Adzz
Created January 31, 2018 00:41
Show Gist options
  • Save Adzz/8b8ffc2728513c470f82ff0a9b4e7e5c to your computer and use it in GitHub Desktop.
Save Adzz/8b8ffc2728513c470f82ff0a9b4e7e5c to your computer and use it in GitHub Desktop.
defmodule Project do
def total_cost(shape, cost_per_square_meter) do
Shape.area(shape) * cost_per_square_meter
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment