Eric Joseph
08/11/2025, 5:52 PMNicolai C.
08/11/2025, 6:04 PMasSequence function. Kotlin generally prefers immutable collections, and non-mutating functions.
Or perhaps some of the remove-like functions on MutableCollection would be of use to you?Eric Joseph
08/11/2025, 6:48 PMDaniel Pitts
08/11/2025, 7:13 PM.removeIf method?Eric Joseph
08/11/2025, 7:26 PMEric Joseph
08/11/2025, 7:27 PMDaniel Pitts
08/11/2025, 7:31 PMDaniel Pitts
08/11/2025, 7:32 PMEric Joseph
08/11/2025, 7:45 PMdropWhile doesn’t modify the list in place; it returns a new one. In other contexts, it works fine too.gildor
08/12/2025, 8:27 AMDaniel Pitts
08/12/2025, 2:26 PMgildor
08/13/2025, 5:03 AM