In this exercise you're working at a pizza place that delivers to customers.
You offer three types of pizzas:
Customers can also choose two additional options for a small additional fee:
When customers place and order, an additional fee is added if they only order one or two pizzas:
You have three tasks, each of which will work with pizzas and their price.
Pizza discriminated union to represent the pizza types and the two additional options that can be added to a pizza:
pizzaPrice function to calculate a pizza's price:
pizzaPrice Caprese // => 9
orderPrice function to calculate a pizza order's price:
orderPrice [Margherita; Formaggio] // => 19