swift function in variable code example Example: swift function in a variable var pendingFunction: ((Double, Double) -> Double)