官术网_书友最值得收藏!

Ordering your data with arrays

In this chapter, and the last, we were introduced to many different Swift constructs: classes, structs, enums, closures, protocols, and tuples. Yet, rarely will we be dealing with these on their own; we will likely have many instances of these constructs, and we need a way to collect multiple instances in useful data structures. We will examine three collection data structures provided by Swift: arrays, sets, and Dictionaries (often called hash tables in other languages):

In the next few recipes, we'll look at how to use them to store and access elements, and examine their relative characteristics.

主站蜘蛛池模板: 承德县| 虹口区| 河北省| 阜阳市| 九江市| 弥勒县| 潜江市| 陆川县| 远安县| 大悟县| 交城县| 澄江县| 芦溪县| 南京市| 鹤庆县| 松桃| 绥宁县| 广宗县| 宜都市| 巴楚县| 孝感市| 榕江县| 义乌市| 梓潼县| 蛟河市| 九龙县| 南丹县| 青神县| 车险| 北川| 新宾| 泌阳县| 南投县| 育儿| 威远县| 乌兰察布市| 哈尔滨市| 日喀则市| 禹城市| 甘洛县| 枞阳县|