Cies
07/07/2023, 1:48 PMfor (model in models) { ... }
is not very kotlinesque, try models.forEach { model -> ... }
instead, I think you'll come to love it!Mikael Ståldal
07/07/2023, 2:38 PMval models = listOf(IdName("a1", "A1"), IdName("a3", "A3"), IdName("a6", "A6"))
val createHTML = createHTML()
val html: String = models.map { model ->
createHTML.option {
value = model.id
+model.name
}
}.last()
Cies
07/07/2023, 3:11 PM