Kotlin HashSet toDoubleArray()
Syntax & Examples


Syntax of HashSet.toDoubleArray()

The syntax of HashSet.toDoubleArray() extension function is:

fun Collection<Double>.toDoubleArray(): DoubleArray

This toDoubleArray() extension function of HashSet returns an array of Double containing all of the elements of this collection.