- Swift Functional Programming(Second Edition)
- Dr. Fatih Nayebi
- 38字
- 2021-07-02 23:54:21
Subscripts
Swift provides subscripts that are shortcuts to access members of collections, lists, sequences, or custom types. Subscripts can be used to set and get values by an index without needing separate methods for the setting and getting.