Joe
02/14/2019, 1:15 AMlistOf(listOf(newElement), existingList).flatten()
but that's a bit cumbersome. realized I can do listOf(newElement).union(existingList)
, but that gives a Set
instead of a List
, which isn't always desired.nkiesel
02/14/2019, 2:26 AMlistOf(newElement) + existingList
Joe
02/14/2019, 3:30 AM+