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

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.

主站蜘蛛池模板: 清镇市| 杭锦后旗| 全椒县| 丽江市| 新营市| 四会市| 永丰县| 东光县| 清新县| 湖北省| 宣城市| 鄂尔多斯市| 襄汾县| 合阳县| 永泰县| 临颍县| 东城区| 伊金霍洛旗| 宜都市| 华宁县| 尚义县| 株洲市| 碌曲县| 铁力市| 张家港市| 大竹县| 夏河县| 敦煌市| 离岛区| 富蕴县| 西宁市| 石棉县| 云霄县| 宿迁市| 彰化市| 揭阳市| 彭泽县| 密山市| 广西| 嘉兴市| 临西县|