- Swift Functional Programming(Second Edition)
- Dr. Fatih Nayebi
- 97字
- 2021-07-02 23:54:23
Type aliases
Type aliases define an alternative name for an existing type. We define type aliases with the typealias keyword. Type aliases are useful when we want to refer to an existing type by a name that is contextually more appropriate, such as when working with data of a specific size from an external source. For instance, in the following example, we provide an alias for an unsigned 32-bit integer that can be used later in our code:
typealias UnsignedInteger = UInt32
The typealias definitions can be used to simplify the closure and function definitions as well.
推薦閱讀
- Python絕技:運用Python成為頂級數(shù)據(jù)工程師
- Unity 5.x Game AI Programming Cookbook
- SQL Server 2008數(shù)據(jù)庫應(yīng)用技術(shù)(第二版)
- Python醫(yī)學(xué)數(shù)據(jù)分析入門
- OracleDBA實戰(zhàn)攻略:運維管理、診斷優(yōu)化、高可用與最佳實踐
- 智能數(shù)據(jù)時代:企業(yè)大數(shù)據(jù)戰(zhàn)略與實戰(zhàn)
- Proxmox VE超融合集群實踐真?zhèn)?/a>
- 淘寶、天貓電商數(shù)據(jù)分析與挖掘?qū)崙?zhàn)(第2版)
- 智慧的云計算
- SAS金融數(shù)據(jù)挖掘與建模:系統(tǒng)方法與案例解析
- MySQL DBA修煉之道
- Hands-On System Programming with C++
- Filecoin原理與實現(xiàn)
- 云計算
- Unity for Architectural Visualization