In the challenge " Basta Fazoolin’" we create a method to calculate the total bill based on the menus we defined earlier in the challenge.
My question is: Is there a way to access the items in all menus such that we can check items in all of them at once - removing the need to define calculation for each menu?
Can this be done without consolidating the menus in some way?
#pseudocode <thing_that_accesses_all_menus>.calculate(['brunch item', 'early bird item', 'kids item'])
Just asking out of curiosity in order to understand if this class can be streamlined. Thanks!