- Swift Functional Programming(Second Edition)
- Dr. Fatih Nayebi
- 82字
- 2021-07-02 23:54:21
Immutability
Swift makes it easy to define immutable values--in other words, constants--and empowers FP, as immutability is one of the key concepts in FP. Once constants are initialized, they cannot be altered or mutated. Although it is possible to achieve immutability in languages such as Java, it is not as easy as Swift. To define any immutable type in Swift, the let keyword can be used no matter if it is a custom type, collection type, or a Struct/enum type.
推薦閱讀
- Hands-On Data Structures and Algorithms with Rust
- 企業數字化創新引擎:企業級PaaS平臺HZERO
- 數據可視化:從小白到數據工程師的成長之路
- 數據庫基礎與應用:Access 2010
- 大數據導論
- Libgdx Cross/platform Game Development Cookbook
- Ceph源碼分析
- 云數據中心網絡與SDN:技術架構與實現
- 大數據數學基礎(Python語言描述)
- Spring MVC Beginner’s Guide
- 改進的群智能算法及其應用
- 企業大數據處理:Spark、Druid、Flume與Kafka應用實踐
- 大數據隱私保護技術與治理機制研究
- Unity for Architectural Visualization
- 基于數據發布的隱私保護模型研究