Kotlin HashSet toFloatArray()
Syntax & Examples


Syntax of HashSet.toFloatArray()

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

fun Collection<Float>.toFloatArray(): FloatArray

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