computeCalcOperationSymbol function
Implementation
num computeCalcOperationSymbol(CalcOperation op, num a, num b) {
switch (op) {
case CalcOperation.sum:
return a + b;
case CalcOperation.subtract:
return a - b;
case CalcOperation.multiply:
return a * b;
case CalcOperation.divide:
return a / b;
}
}