If I wanted to define a Map where the value is some finite set of types, is there any way to properly type that union? My recollection of several years ago is that there was no way to properly define union types in Kotlin, just wondering if that’s changed?
a
Adam S
03/17/2023, 2:02 AM
it depends on what exactly you want, but there are