Tech
03/24/2023, 6:56 PMval list1 = listOf("hello", "world")
val list2 = listOf(*list1, "test")
I mainly just need to spread list1 into list2 so the type is List<String> on list2ephemient
03/24/2023, 6:58 PMlistOf(*list1.toTypedArray(), "test")
but don't do that, because
list1 + "test"
is clearerTech
03/24/2023, 6:58 PM