Instead, you can declare constructor that partitio...
# announcements
k
Instead, you can declare constructor that partitions the data, i.e:
Copy code
constructor {
    val assets = data.partition { it.isShort }
    this.shortAssets = assets.first
    this.longAssets = assets.second
}