<@U2B782R89> Don't know if there is a more concise...
# announcements
b
@tbieniek Don't know if there is a more concise or efficient way, but you can try
fun String.positions(ch:Char='.') = mapIndexed { i, c -> i to c }.filter{it.second == ch}.map{it.first}