Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Master merge to main 9/3/2024 #1447

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 5 additions & 9 deletions exercises/concept/lasagna/lib/lasagna.ex
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
defmodule Lasagna do
# Please define the 'expected_minutes_in_oven/0' function

# Please define the 'remaining_minutes_in_oven/1' function

# Please define the 'preparation_time_in_minutes/1' function

# Please define the 'total_time_in_minutes/2' function

# Please define the 'alarm/0' function
def expected_minutes_in_oven(), do: 40
def remaining_minutes_in_oven(time_spent), do: expected_minutes_in_oven() - time_spent
def preparation_time_in_minutes(layers), do: 2*layers
def total_time_in_minutes(layers,time_spent), do: preparation_time_in_minutes(layers) + time_spent
def alarm(), do: "Ding!"
end
4 changes: 2 additions & 2 deletions exercises/practice/hello-world/lib/hello_world.ex
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ defmodule HelloWorld do
"""
@spec hello :: String.t()
def hello do
"Goodbye, Mars!"
"Hello, World!"
end
end
end