Kotlin HashSet drop()
Syntax & Examples


Syntax of HashSet.drop()

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

fun <T> Iterable<T>.drop(n: Int): List<T>

This drop() extension function of HashSet returns a list containing all elements except first n elements.