📅  最后修改于: 2022-03-11 14:53:32.626000             🧑  作者: Mango
val name = "James Smith"
// Get just 'James' with subSequence()
val james = name.subSequence(0, 5)
// First argument is inclusive
// Second argument is exclusive