Is there any way to say smth like this? I mean to ...
# announcements
i
Is there any way to say smth like this? I mean to pass lambda that should return vararg?
Copy code
inline fun foo(body: () -> vararg Pair<String, Any>) {}
for later use as
Copy code
foo {
    “foo”: 1,
    “bar”: “string”
}