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

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.

主站蜘蛛池模板: 聂荣县| 博湖县| 永州市| 神池县| 克东县| 永和县| 库伦旗| 敦煌市| 阿瓦提县| 类乌齐县| 扶绥县| 广安市| 瓮安县| 小金县| 宜宾市| 罗田县| 竹溪县| 娄底市| 邢台县| 平果县| 焦作市| 岚皋县| 平潭县| 双城市| 育儿| 门源| 虎林市| 枝江市| 江北区| 郁南县| 垫江县| 盐源县| 台前县| 临泉县| 子长县| 昌吉市| 景宁| 卓尼县| 新疆| 诸城市| 凉城县|