String Fields and Functions
let length: Int let example = "hello"
// Find the number of elements of the string.
let length = example.length
// `length` is `5` fun concat(_ other: String): String let example = "hello"
let new = "world"
// Concatenate the new string onto the example string and return the new string.
let helloWorld = example.concat(new)
// `helloWorld` is now `"helloworld"` fun slice(from: Int, upTo: Int): StringLast updated