, Swift , Swift , ref, & . ( ref, & , .) .
, . , , (, structs) (, ), . , Swift ( "" , ), , , . .
, , , , funcVar (3) / , funcVar
I do not understand you. Functions are first-class citizens. So, as soon as you have the value of the function, you can use it, you can pass it, you can return it, like everything else, and the one who receives this function can use it like any other function. Whether the function value is the type of value that is being copied, or the reference to the object with reference counting does not matter.
source
share