@DeprecatedSinceKotlin("1.4") fun <T> Array<out T>.contentToString(): StringDeprecated: Use Kotlin compiler 1.4 to avoid deprecation warning.
@DeprecatedSinceKotlin("1.4") fun ByteArray.contentToString(): StringDeprecated: Use Kotlin compiler 1.4 to avoid deprecation warning.
@DeprecatedSinceKotlin("1.4") fun ShortArray.contentToString(): StringDeprecated: Use Kotlin compiler 1.4 to avoid deprecation warning.
@DeprecatedSinceKotlin("1.4") fun IntArray.contentToString(): StringDeprecated: Use Kotlin compiler 1.4 to avoid deprecation warning.
@DeprecatedSinceKotlin("1.4") fun LongArray.contentToString(): StringDeprecated: Use Kotlin compiler 1.4 to avoid deprecation warning.
@DeprecatedSinceKotlin("1.4") fun FloatArray.contentToString(): StringDeprecated: Use Kotlin compiler 1.4 to avoid deprecation warning.
@DeprecatedSinceKotlin("1.4") fun DoubleArray.contentToString(): StringDeprecated: Use Kotlin compiler 1.4 to avoid deprecation warning.
@DeprecatedSinceKotlin("1.4") fun BooleanArray.contentToString(): StringDeprecated: Use Kotlin compiler 1.4 to avoid deprecation warning.
@DeprecatedSinceKotlin("1.4") fun CharArray.contentToString(): StringDeprecated: Use Kotlin compiler 1.4 to avoid deprecation warning.
fun <T> Array<out T>?.contentToString(): String
@JvmName("contentToStringNullable") fun <T> Array<out T>?.contentToString(): String
fun ByteArray?.contentToString(): String
@JvmName("contentToStringNullable") fun ByteArray?.contentToString(): String
fun ShortArray?.contentToString(): String
@JvmName("contentToStringNullable") fun ShortArray?.contentToString(): String
fun IntArray?.contentToString(): String
@JvmName("contentToStringNullable") fun IntArray?.contentToString(): String
fun LongArray?.contentToString(): String
@JvmName("contentToStringNullable") fun LongArray?.contentToString(): String
fun FloatArray?.contentToString(): String
@JvmName("contentToStringNullable") fun FloatArray?.contentToString(): String
fun DoubleArray?.contentToString(): String
@JvmName("contentToStringNullable") fun DoubleArray?.contentToString(): String
fun BooleanArray?.contentToString(): String
@JvmName("contentToStringNullable") fun BooleanArray?.contentToString(): String
fun CharArray?.contentToString(): String
@JvmName("contentToStringNullable") fun CharArray?.contentToString(): String
Returns a string representation of the contents of the specified array as if it is List.
import kotlin.test.*
fun main(args: Array<String>) {
//sampleStart
val array = arrayOf("apples", "oranges", "lime")
println(array.contentToString()) // [apples, oranges, lime]
//sampleEnd
}
@DeprecatedSinceKotlin("1.4") @ExperimentalUnsignedTypes fun UIntArray.contentToString(): StringDeprecated: Use Kotlin compiler 1.4 to avoid deprecation warning.
@DeprecatedSinceKotlin("1.4") @ExperimentalUnsignedTypes fun ULongArray.contentToString(): StringDeprecated: Use Kotlin compiler 1.4 to avoid deprecation warning.
@DeprecatedSinceKotlin("1.4") @ExperimentalUnsignedTypes fun UByteArray.contentToString(): StringDeprecated: Use Kotlin compiler 1.4 to avoid deprecation warning.
@DeprecatedSinceKotlin("1.4") @ExperimentalUnsignedTypes fun UShortArray.contentToString(): StringDeprecated: Use Kotlin compiler 1.4 to avoid deprecation warning.
@ExperimentalUnsignedTypes fun UIntArray?.contentToString(): String
@ExperimentalUnsignedTypes fun ULongArray?.contentToString(): String
@ExperimentalUnsignedTypes fun UByteArray?.contentToString(): String
@ExperimentalUnsignedTypes fun UShortArray?.contentToString(): String
Returns a string representation of the contents of the specified array as if it is List.
import kotlin.test.*
fun main(args: Array<String>) {
//sampleStart
val array = arrayOf("apples", "oranges", "lime")
println(array.contentToString()) // [apples, oranges, lime]
//sampleEnd
}
© 2010–2020 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/content-to-string.html