Yeah, my question is how I can specify key and val...
# announcements
w
Yeah, my question is how I can specify key and value
s
just kind of an errant idea i had, if you control how
myTriples
is generated, maybe instead of using a Triple, you could perhaps use an object expression? something like
Copy code
myCollection.map { object { val name = it.name; val gender = it.gender; val value = it.value } }
the objects that get made will have named properties that the IDE can see without needing to make a separate data class or anything
👍 1