Accessing and Modifying String | String Indices

Опубликовано: 22 Март 2026
на канале: Shiko Matlala
9
0

Strings and Characters
A string is a series of characters, such as "hello, world" or "albatross". Swift strings are represented by the String type. The contents of a String can be accessed in various ways, including as a collection of Character values.

String Indices
Each String value has an associated index type, String.
Index, which corresponds to the position of each Character in the string.

https://docs.swift.org/swift-book/Lan...