- Swift Functional Programming(Second Edition)
- Dr. Fatih Nayebi
- 131字
- 2021-07-02 23:54:35
Types and Type Casting
In the previous chapter, we talked about functions and closures and covered topics such as function types. We know that functions are first-class citizens in Swift and they can be stored and passed around like any type. It is the time to look into types in detail.
This chapter starts with explaining types, touching on the concept of types in the category theory very briefly. Then it explains value and reference types and compares them in detail. Finally, it talks about equality, identity, and type casting.
This chapter will cover the following topics with coding examples:
- Types
- Different categories of types
- Value versus reference types
- Value and reference type constants
- Mixing value and reference types
- Copying
- Value type characteristics
- Equality, identity, and comparing
- Type checking and casting
推薦閱讀
- 數據庫原理及應用教程(第4版)(微課版)
- 醫療大數據挖掘與可視化
- 數據庫應用基礎教程(Visual FoxPro 9.0)
- 大數據時代下的智能轉型進程精選(套裝共10冊)
- 網站數據庫技術
- Google Cloud Platform for Developers
- 活用數據:驅動業務的數據分析實戰
- Expert Python Programming(Third Edition)
- openGauss數據庫核心技術
- 數據應用工程:方法論與實踐
- Arquillian Testing Guide
- 推薦系統全鏈路設計:原理解讀與業務實踐
- 社交網站的數據挖掘與分析(原書第2版)
- Python金融數據挖掘與分析實戰
- Tableau商業分析從新手到高手(視頻版)