✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Чи скомпілюється такий код?
class Tests {
@Test
fun `create map using infix to function`() {
val map = mapOf("a" to 1, "b" to 2, "c" to 2)
assertAll(
{ assertThat(maps, hasKey("a")) },
{ assertThat(map, hasKey("b")) },
{ assertThat(maps, hasKey("c")) },
{ assertThat(map, hasValue(1)) },
{ assertThat(maps, hasValue(2)) })
}
}