Add a Bool property to your CalculatorBrain called resultIsPending which returns whether there is a binary operation pending.
Create a generated property which checks if there is a pending binary operation:
[swift]
var resultIsPending: Bool {
get {
return nil != pendingBinaryOperation
}
}
[/swift]
The complete code for the assignment #1 task #5 is available on GitHub.













