If it's not currently possible, would a golang-ish...
# stdlib
p
If it's not currently possible, would a golang-ish use of interfaces be a good solution?
Copy code
data class DataPoint(val date: ZonedDateTime, val value: Int): ToInt by value