Question: Latex 1.11.5 Write a function replaceFries() that takes a value of the meal datatype from Section 1.10 and replaces Fries, if that is the side;

Latex
1.11.5 Write a function replaceFries() that takes a value of the meal datatype from Section 1.10 and replaces Fries, if that is the side; with Chips. If Fries is not the side, then the original meal is re- turned unchanged. Pattern-matching can be used to make this simple. 1.11.5 Write a function replaceFries() that takes a value of the meal datatype from Section 1.10 and replaces Fries, if that is the side; with Chips. If Fries is not the side, then the original meal is re- turned unchanged. Pattern-matching can be used to make this simple
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
