fun foo(list: List) { for ((index, s) in list.withIndex()) { print(s.substring(index)) } }