- Swift Functional Programming(Second Edition)
- Dr. Fatih Nayebi
- 56字
- 2021-07-02 23:54:24
Empty Strings
Empty Strings can be initialized as follows:
// Initializing an Empty String
var anEmptyString = ""
var anotherEmptyString = String()
These two strings are both empty and equivalent to each other. To find out whether a String is empty, the isEmpty property can be used as follows:
if anEmptyString.isEmpty {
print("String is empty")
}
推薦閱讀
- 分布式數(shù)據(jù)庫系統(tǒng):大數(shù)據(jù)時代新型數(shù)據(jù)庫技術(shù)(第3版)
- 深入淺出MySQL:數(shù)據(jù)庫開發(fā)、優(yōu)化與管理維護(第2版)
- 中國數(shù)字流域
- 智能數(shù)據(jù)時代:企業(yè)大數(shù)據(jù)戰(zhàn)略與實戰(zhàn)
- 數(shù)據(jù)挖掘原理與SPSS Clementine應(yīng)用寶典
- Apache Kylin權(quán)威指南
- Construct 2 Game Development by Example
- 智慧城市中的大數(shù)據(jù)分析技術(shù)
- Access 2010數(shù)據(jù)庫程序設(shè)計實踐教程
- 數(shù)據(jù)賦能
- 利用Python進行數(shù)據(jù)分析(原書第2版)
- PostgreSQL高可用實戰(zhàn)
- 數(shù)據(jù)挖掘與機器學(xué)習(xí)-WEKA應(yīng)用技術(shù)與實踐(第二版)
- Unity 4.x Game AI Programming
- 實用數(shù)據(jù)結(jié)構(gòu)基礎(chǔ)(第四版)