how to output a variable from a function through a function in swift 5 code example Example: swift function in a variable var pendingFunction: ((Double, Double) -> Double)