Bernhard
02/20/2020, 12:40 PMspand
02/20/2020, 12:41 PMBernhard
02/20/2020, 12:42 PMspand
02/20/2020, 12:46 PMtoSortedSet()
and toHashSet()
also but its the wrong way to think about it.
In Kotlin the guarantees are specified in the methods ie. toSet()
that they preserve the iteration order. Not via. a LinkedHashSet
return type.Bernhard
02/20/2020, 12:51 PMBernhard
02/20/2020, 12:51 PMBernhard
02/20/2020, 12:53 PM.toCollection(LinkedHashSet())