Question: - Complete the function. This function takes in a &String and returns a Result in which the first element is the first number in an


- Complete the function. This function takes in a \&String and returns a Result in which the first element is the first number in an expression, the second element is the second number in an expression, and the third element is an 0peration corresponding to the operation in the expression. You can learn about the result type here. For example, the input string " 56.3 " should return (5, 6.3, Operation: :Multiply). Note that there can be any number of spaces separating the components of an expression. Hint: use the split () function to separate the string by the operation characters and trim( ) to remove any white spaces. You will want to use the get_equation_tuple function as a helper to parse the function. It will return a Tuple containing the two numbers in the equation as 0ption
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
