- Swift Functional Programming(Second Edition)
- Dr. Fatih Nayebi
- 127字
- 2021-07-02 23:54:33
Allowed operators
The Swift standard library provides a number of operators that can be used to define custom operators. Custom operators can begin with one of the ASCII characters -/, =, -, +, !, *, %, <, >, &, |, ^, ?, ~, or one of the Unicode characters. After the first character, combining Unicode characters is allowed.
We can also define custom operators that begin with a dot. If an operator does not start with a dot, it cannot contain a dot elsewhere. Although we can define custom operators that contain a question mark (?), they cannot consist of a single question mark character only. Additionally, although operators can contain an exclamation point (!), postfix operators cannot begin with either a question mark or an exclamation point.
推薦閱讀
- SQL入門經典(第5版)
- 云計算服務保障體系
- 大數據算法
- Neural Network Programming with TensorFlow
- Creating Dynamic UIs with Android Fragments(Second Edition)
- Hadoop 3.x大數據開發(fā)實戰(zhàn)
- 數據挖掘原理與SPSS Clementine應用寶典
- 高維數據分析預處理技術
- SQL應用及誤區(qū)分析
- Oracle RAC日記
- 區(qū)塊鏈技術應用與實踐案例
- Oracle高性能SQL引擎剖析:SQL優(yōu)化與調優(yōu)機制詳解
- Node.js High Performance
- Google Cloud Platform for Architects
- 數據中臺實戰(zhàn):手把手教你搭建數據中臺