contentToString

inline actual fun <T> Array<out T>.contentToString(): String (source)

Platform and version requirements: Kotlin 1.1

inline actual fun ByteArray.contentToString(): String (source)

Platform and version requirements: Kotlin 1.1

inline actual fun ShortArray.contentToString(): String (source)

Platform and version requirements: Kotlin 1.1

inline actual fun IntArray.contentToString(): String (source)

Platform and version requirements: Kotlin 1.1

inline actual fun LongArray.contentToString(): String (source)

Platform and version requirements: Kotlin 1.1

inline actual fun FloatArray.contentToString(): String (source)

Platform and version requirements: Kotlin 1.1

inline actual fun DoubleArray.contentToString(): String (source)

Platform and version requirements: Kotlin 1.1

inline actual fun BooleanArray.contentToString(): String (source)

Platform and version requirements: Kotlin 1.1

inline actual fun CharArray.contentToString(): String (source)

Platform and version requirements: Kotlin 1.1

Returns a string representation of the contents of the specified array as if it is List.



fun main(args: Array<String>) {
//sampleStart
val array = arrayOf("apples", "oranges", "lime")

println(array.contentToString()) // [apples, oranges, lime]
//sampleEnd
}