I was messing around abusing Kotlin's DSL abilitie...
# announcements
r
I was messing around abusing Kotlin's DSL abilities, and I noticed something. Suppose I have this class and function:
Copy code
class Selector(val value: String) {
    operator fun invoke(op: () -> Unit) = Unit
}

fun s(value: String) = Selector(value)