[Solved] Define a scheme function for infix
This can get really complex quite fast. Consider (1 – 2 * 3). If your calculator only supports addition and negation, this is still not trivial. Consider (5 – 5 – 5). If you consider the input as left associative, you’ll get the correct -5, but if you read it as right associative (which is … Read more