syntax - What does the arrow ( -> ) between two types mean in Swift? -


while researching separate issue, came across question: how create generic closures in swift

they have function definition this:

func savewithcompletionobject(obj : anyobject, success : anyobject -> void, failure : void -> void) 

what -> in anyobject -> void mean?

it’s function type. anyobject -> void type of function accepting anyobject , returning void.


Comments

Popular posts from this blog

c - How to retrieve a variable from the Apache configuration inside the module? -

c# - Constructor arguments cannot be passed for interface mocks -

python - malformed header from script index.py Bad header -