Lasagna Recipe
November 4, 2020 ยท View on GitHub
Story
The story of this exercise uses a lasagna recipe to focus on the creation of basic functions, operators, integers, and return values.
Tasks
The story facilitates defining functions:
- Returning the expected cooking time.
- Calculating the remaining time in the oven.
- Calculating preparation time as a function of the number of layers in a lasagna.
- Calculating the total cooking time.
Implementations
- C#: lucians-luscious-lasagna (reference implementation)
- Elixir: basics
- F#: basics
- Java: basics
- JavaScript: basics
- Julia: functions-introduction
- [Python: basics][implemenatation-python]
- Ruby: basics
- Swift: basics