lundi 23 juin 2014

What is this swift declaration doing?


Vote count:

0




According to the author of this page this is declaring a dictionary of dictionaries in swift:



var routeMap : Dictionary<String, Dictionary<String, () -> ()>> = [:]


can you explain what are this doing, specially the part with these hieroglyphs () -> ()>> = [:] at the end?


It appears that the guy is joining a series of commands together. If this is the case, if you can unfold that code into several lines I appreciate.


thanks.



asked 36 secs ago






Aucun commentaire:

Enregistrer un commentaire