Kotlin HashSet toLongArray()
Syntax & Examples


Syntax of HashSet.toLongArray()

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

fun Collection<Long>.toLongArray(): LongArray

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