- Swift Functional Programming(Second Edition)
- Dr. Fatih Nayebi
- 28字
- 2021-07-02 23:54:25
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.