Swift Functional Programming(Second Edition)
上QQ阅读APP看书,第一时间看更新

String comparison

Strings can be compared with == for equality and != for inequality.

The hasPrefix and hasSuffix methods can be used for prefix and suffix equality checking.