val words = Array("zero", "one", "two", "three", "four", "five",
"six", "seven", "eight", "nine", "ten")
val specificLetter = 't'
val indexes = words.zipWithIndex.collect {
case (word, index) if word.startsWith(specificLetter.toString) => index
}
println(indexes.mkString(", "))
/*
run:
2, 3, 10
*/