class CalculatorBrain9iOS{ ***bunch of code*** private var accumulator = 0.0 private var pending: PendingBinaryOperationInfo? private struct PendingBinaryOperationInfo { var binaryFunction: (Double, Double) -> Double var firstOperand: Double } func ...(...) { if let operation = ... { switch operation { case ... case RandomFunction.ThisCase(let function): pending = PendingBinaryOperationInfo(binaryFunction: function, firstOperand: accumulator) } } } ***bunch of code*** }
private struct PendingBinaryOperationInfo
private static class PendingBinaryOperationInfo
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)