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