← Docs
kotlin-stdlib / kotlin.text / StringBuilder / subSequence

subSequence

Common
JS
Native
1.0
fun subSequence ( startIndex : Int , endIndex : Int ) : CharSequence
(Common source) (JS source) (Native source)

Returns a new character sequence that is a subsequence of this character sequence, starting at the specified startIndex and ending right before the specified endIndex .

Parameters

startIndex - the start index (inclusive).

endIndex - the end index (exclusive).

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 .