onEach

inline fun <S : CharSequence> S.onEach(action: (Char) -> Unit): S(source)

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

Since Kotlin

1.1