kotlin-stdlib / kotlin.text / forEach forEach Common JVM JS Native 1.0 inline fun CharSequence.forEach(action: (Char) -> Unit) Performs the given action on each character.