What is the difference between list and sequence processing, and when each should be preferred?
Prefer Sequence for big collections with more than one processing step by @marcinmoskalahttps://kt.academy/article/ek-sequence
09/20/2021, 8:01 AM
List may be faster than Sequence for other reasons, due to inlining of most operators and the output size of some operators being known in advance (whereas if you're going to stick a
at the end of a sequence chain, it will use the copying growth strategy of ArrayList)