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
Post a Comment