onEach

Common
JVM
JS
Native
1.1
inline fun <S : CharSequence> S.onEach(
    action: (Char) -> Unit
): S

Performs the given action on each character and returns the char sequence itself afterwards.