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

Tuples, type aliases, and generics

This chapter would not be complete if we didn't address some very useful features from Swift. Tuples are very useful types that let you return multiple objects as one, without a strongly typed wrapper. Aliases let you quickly define simple type shortcuts. Finally, we'll cover the basics of generics. While generics could be covered in a whole book, we'll just scratch the surface of their syntax, features, and limits, as we'll make use of them extensively throughout this book.

主站蜘蛛池模板: 连南| 迁西县| 喀什市| 应城市| 图片| 绥棱县| 琼结县| 习水县| 绥江县| 文水县| 汝南县| 高要市| 古丈县| 简阳市| 合江县| 海阳市| 蚌埠市| 永嘉县| 秀山| 华阴市| 通江县| 兴安盟| 东阿县| 辽宁省| 离岛区| 怀集县| 阿鲁科尔沁旗| 阳谷县| 密云县| 琼结县| 静乐县| 张家界市| 延安市| 吉林省| 乌鲁木齐县| 邵武市| 海原县| 冕宁县| 洛南县| 乐都县| 桦南县|