hashSetOf
Returns an empty new HashSet.
inline fun <T> hashSetOf(): HashSet<T>(source)
fun main() {
// Create a HashSet with initial elements
val fruits = hashSetOf("apple", "banana", "cherry")
// Add another element
fruits.add("date")
// Print the contents
println(fruits) // [apple, banana, cherry, date]
}