doubleArrayOf

expect fun doubleArrayOf(vararg elements: Double): DoubleArray(source)

Returns an array containing the specified Double numbers.

Since Kotlin

1.0

Samples

import kotlin.test.*

fun main() { 
   //sampleStart 
   val emptyDoubleArray = doubleArrayOf()
println(emptyDoubleArray.contentToString()) // []

val doubleArray = doubleArrayOf(1.0, 2.5, 3.14)
println(doubleArray.contentToString()) // [1.0, 2.5, 3.14] 
   //sampleEnd
}
actual inline fun doubleArrayOf(vararg elements: Double): DoubleArray(source)

Returns an array containing the specified Double numbers.

Since Kotlin

1.1

Samples

import kotlin.test.*

fun main() { 
   //sampleStart 
   val emptyDoubleArray = doubleArrayOf()
println(emptyDoubleArray.contentToString()) // []

val doubleArray = doubleArrayOf(1.0, 2.5, 3.14)
println(doubleArray.contentToString()) // [1.0, 2.5, 3.14] 
   //sampleEnd
}
actual fun doubleArrayOf(vararg elements: Double): DoubleArray(source)

Returns an array containing the specified Double numbers.

Since Kotlin

1.0

Samples

import kotlin.test.*

fun main() { 
   //sampleStart 
   val emptyDoubleArray = doubleArrayOf()
println(emptyDoubleArray.contentToString()) // []

val doubleArray = doubleArrayOf(1.0, 2.5, 3.14)
println(doubleArray.contentToString()) // [1.0, 2.5, 3.14] 
   //sampleEnd
}
actual inline fun doubleArrayOf(vararg elements: Double): DoubleArray(source)

Returns an array containing the specified Double numbers.

Since Kotlin

1.3

Samples

import kotlin.test.*

fun main() { 
   //sampleStart 
   val emptyDoubleArray = doubleArrayOf()
println(emptyDoubleArray.contentToString()) // []

val doubleArray = doubleArrayOf(1.0, 2.5, 3.14)
println(doubleArray.contentToString()) // [1.0, 2.5, 3.14] 
   //sampleEnd
}
actual inline fun doubleArrayOf(vararg elements: Double): DoubleArray(source)

Returns an array containing the specified Double numbers.

Since Kotlin

1.8

Samples

import kotlin.test.*

fun main() { 
   //sampleStart 
   val emptyDoubleArray = doubleArrayOf()
println(emptyDoubleArray.contentToString()) // []

val doubleArray = doubleArrayOf(1.0, 2.5, 3.14)
println(doubleArray.contentToString()) // [1.0, 2.5, 3.14] 
   //sampleEnd
}
actual inline fun doubleArrayOf(vararg elements: Double): DoubleArray(source)

Returns an array containing the specified Double numbers.

Since Kotlin

1.8

Samples

import kotlin.test.*

fun main() { 
   //sampleStart 
   val emptyDoubleArray = doubleArrayOf()
println(emptyDoubleArray.contentToString()) // []

val doubleArray = doubleArrayOf(1.0, 2.5, 3.14)
println(doubleArray.contentToString()) // [1.0, 2.5, 3.14] 
   //sampleEnd
}