if i have a hash map between a key and a value with a collection type, is it possible to have an empty instance of that collection type generated the first time the key is accessed? something like:
Copy code
val myHashMap = HashMap<String, ArrayList<Int>>()
for (i in -100..100) {
if (i < 0) myHashMap["negative"].add(i)
else myHashMap["positive"].add(i)
}