Kotlin HashSet forEach()
Syntax & Examples
Syntax of HashSet.forEach()
The syntax of HashSet.forEach() extension function is:
fun <T> Iterable<T>.forEach(action: (T) -> Unit)
This forEach() extension function of HashSet performs the given action on each element.