This commit is contained in:
Alexander Heldt
2025-10-29 20:09:37 +01:00
parent 2a39dced2f
commit 70cfb196b8
10 changed files with 348 additions and 0 deletions

24
lasagna/src/lasagna.gleam Normal file
View File

@@ -0,0 +1,24 @@
// Please define the expected_minutes_in_oven function
pub fn expected_minutes_in_oven() -> Int {
40
}
// Please define the remaining_minutes_in_oven function
pub fn remaining_minutes_in_oven(time_in_oven: Int) -> Int {
40 - time_in_oven
}
// Please define the preparation_time_in_minutes function
pub fn preparation_time_in_minutes(layers: Int) -> Int {
layers * 2
}
// Please define the total_time_in_minutes function
pub fn total_time_in_minutes(layers: Int, time_in_oven: Int) -> Int {
preparation_time_in_minutes(layers) + time_in_oven
}
// Please define the alarm function
pub fn alarm() -> String {
"Ding!"
}