diff --git a/libraries/stdlib/src/generated/_Generators.kt b/libraries/stdlib/src/generated/_Generators.kt index 247f9c0ebdd..77acb0b7327 100644 --- a/libraries/stdlib/src/generated/_Generators.kt +++ b/libraries/stdlib/src/generated/_Generators.kt @@ -509,7 +509,7 @@ public fun Set.minus(sequence: Sequence): Set { } /** - * Splits original collection into pair of collections, + * Splits the original collection into pair of collections, * where *first* collection contains elements for which [predicate] yielded `true`, * while *second* collection contains elements for which [predicate] yielded `false`. */ @@ -527,7 +527,7 @@ public inline fun Array.partition(predicate: (T) -> Boolean): Pair
  • Boolean): Pair< } /** - * Splits original collection into pair of collections, + * Splits the original collection into pair of collections, * where *first* collection contains elements for which [predicate] yielded `true`, * while *second* collection contains elements for which [predicate] yielded `false`. */ @@ -563,7 +563,7 @@ public inline fun ByteArray.partition(predicate: (Byte) -> Boolean): Pair Boolean): Pair Boolean): Pair
  • Boolean): Pair Boolean): Pair Boolean): Pair Boolean): Pair Iterable.partition(predicate: (T) -> Boolean): Pair Sequence.partition(predicate: (T) -> Boolean): Pair Boolean): Pair { val first = StringBuilder() diff --git a/libraries/tools/kotlin-stdlib-gen/src/templates/Generators.kt b/libraries/tools/kotlin-stdlib-gen/src/templates/Generators.kt index f50e82f4211..74fc7d794ca 100644 --- a/libraries/tools/kotlin-stdlib-gen/src/templates/Generators.kt +++ b/libraries/tools/kotlin-stdlib-gen/src/templates/Generators.kt @@ -339,7 +339,7 @@ fun generators(): List { doc { """ - Splits original collection into pair of collections, + Splits the original collection into pair of collections, where *first* collection contains elements for which [predicate] yielded `true`, while *second* collection contains elements for which [predicate] yielded `false`. """ @@ -361,6 +361,13 @@ fun generators(): List { """ } + doc(Strings) { + """ + Splits the original string into pair of strings, + where *first* string contains characters for which [predicate] yielded `true`, + while *second* string contains characters for which [predicate] yielded `false`. + """ + } returns(Strings) { "Pair" } body(Strings) { """