Kotlin HashSet toBooleanArray()
Syntax & Examples


Syntax of HashSet.toBooleanArray()

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

fun Collection<Boolean>.toBooleanArray(): BooleanArray

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