In Python, I can have complex dictionary keys, for example:
d = {}
d[(1, 2)] = 3
print d[(1, 2)]
How can I announce and fill out such a card in Kotlin?
Edit: I tried to declare such a Card, but I do not know how to fill it in:
val my_map = HashMap<Pair<Int, Int>, Int>()
source
share