I have a kotlin list of strings. I need the first characters of each string in the list and format the string the below expected way. Is there a buitin method equivalent to get first characters in the list?
fun main() {
val stringlist = listOf("One", "Two", "Four")
var name = "Flock"
// Current Output Flock:One:Two:Four
println(name + ":"+ stringlist.joinToString(":"))
// expected output Flock:O:T:F
}