william
11/15/2020, 7:09 PMArkadii Ivanov
11/15/2020, 7:35 PMmutableSetOf preserves the order by design. There is ArrayDeque in stdlib as well. I have multiplatform implementation of PriorityQueue, let me know if you are interested. Not sure about trees though.