apatrida
01/28/2016, 10:52 PMprivate val people = hashMapOf(*listOf(
Person(1, "Frank", 30),
Person(2, "Domingo", 19),
Person(3, "Mariana", 22),
Person(4, "Lucia", 31)
).map { it.id to it }.toTypedArray())
Warning:(169, 27) Kotlin: It may be not safe to use 'kotlin.Pair<kotlin.Int, uy.kohesive.kovert.vertx.boot.test.Person>' as an argument for a reified type parameter. Use a non-generic type or * if possibleI added this to https://youtrack.jetbrains.com/issue/KT-10847