r4zzz4k
12/08/2017, 8:05 PMCollection vs direct ArrayList usage). Filter version has more operations, but without proper benchmark it's hard to tell anything. If you want to go further, you should probably start with Minimal, Complete, and Verifiable example and see if it's still the case. JMH is your friend, though I don't have experience with it. And if you get some proofs, I bet JetBrains team would be glad to discuss it further (https://kotl.in/issue) -- both we and them are here to make this language superior 😉