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

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -