Hi, could you check where i've missed smth ``` dat...
# announcements
m
Hi, could you check where i've missed smth
Copy code
data class TariffInfo (var type: String?=null, var name: String?)

fun main(args: Array<String>) {
    var fullTariffList: List<TariffInfo> = arrayListOf()

var testTariffList = arrayListOf(TariffInfo(name="tariff_1"), TariffInfo(name="tariff_2"))
    arrayOf("customer", "reseller", "vendor").forEach {
        fullTariffList += testTariffList.onEach { tariff -> tariff.type = it }
    }
    println(testTariffList)
    println(fullTariffList)