谢朋刚
03/29/2024, 3:07 AMMatthew Feinberg
03/29/2024, 3:13 AMList<>
for this sort of thing.谢朋刚
03/29/2024, 3:14 AMMatthew Feinberg
03/29/2024, 6:51 AMList<>
is a read-only interface, so unless you're trying to cast it to other things, just List<>
is probably what you want (it's what you get if you use listOf<>(...)
for example.Stylianos Gakis
03/29/2024, 9:59 AMList
actually unfortunately still is not considered stable for compose’s sake. So either just use ImmutableList for now, or wait for strong skipping mode to be turned on where they will also start inferring List as stableMatthew Feinberg
03/29/2024, 10:00 AMMatthew Feinberg
03/29/2024, 10:02 AMStylianos Gakis
03/29/2024, 10:03 AMMatthew Feinberg
03/29/2024, 10:03 AM