One more thing: `for (model in models) { ... }` i...
# kotlinx-html
c
One more thing:
for (model in models) { ... }
is not very kotlinesque, try
models.forEach { model -> ... }
instead, I think you'll come to love it!
m
That does not help. This seems to work though, but is quite weird:
Copy code
val 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()
c
Pretty cool innnit?