← Docs
kotlin-stdlib / kotlin.text / onEach

onEach

Common
JVM
JS
Native
1.1
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.

Stay in touch:
  • Contributing to Kotlin
  • Releases
  • Press Kit
  • Security
  • Blog
  • Issue Tracker
  • Brand assets
  • Careers
Supported and developed by JetBrains .
Kotlin™ is protected under the Kotlin Foundation
and licensed under the Apache 2 license .