improved the docs and test cases
This commit is contained in:
@@ -157,7 +157,7 @@ public inline fun <T, K> java.lang.Iterable<T>.groupBy(result: Map<K, List<T>> =
|
|||||||
* If a collection could be huge you can specify a non-negative value of *limit* which will only show a subset of the collection then it will
|
* If a collection could be huge you can specify a non-negative value of *limit* which will only show a subset of the collection then it will
|
||||||
* a special *truncated* separator (which defaults to "..."
|
* a special *truncated* separator (which defaults to "..."
|
||||||
*
|
*
|
||||||
* @includeFunctionBody ../../test/CollectionTest.kt appendString
|
* @includeFunctionBody ../../test/CollectionTest.kt makeString
|
||||||
*/
|
*/
|
||||||
public inline fun <T> java.lang.Iterable<T>.makeString(separator: String = ", ", prefix: String = "", postfix: String = "", limit: Int = -1, truncated: String = "..."): String {
|
public inline fun <T> java.lang.Iterable<T>.makeString(separator: String = ", ", prefix: String = "", postfix: String = "", limit: Int = -1, truncated: String = "..."): String {
|
||||||
val buffer = StringBuilder()
|
val buffer = StringBuilder()
|
||||||
|
|||||||
Reference in New Issue
Block a user