【发布时间】:2017-06-10 08:51:51
【问题描述】:
这在 Kotlin 中有什么区别:
val customerProducts = mutableMapOf<Customer, Set<Product>>()
还有这个:
val customerProducts: MutableMap<Customer, Set<Product>> = mutableMapOf()
【问题讨论】:
-
第二条语句无法编译。
标签: dictionary collections kotlin