I have this Function in a class:
func multiply(factor1:Int, factor2:Int) -> Int{ return factor1 * factor2 }
I try to call the functi
A note about passing in a method as an argument that returns no value:
func refresh(obj:Obj, _ method: (Obj)->Void = setValue) { method(element) } func setValue(obj:Obj){ obj.value = "someValue" } refresh(someObj,setValue)