diff --git a/fleet/util/core/srcCommonMain/fleet/util/CollectionsUtil.kt b/fleet/util/core/srcCommonMain/fleet/util/CollectionsUtil.kt index 04d50349d5c7..267affb69c6f 100644 --- a/fleet/util/core/srcCommonMain/fleet/util/CollectionsUtil.kt +++ b/fleet/util/core/srcCommonMain/fleet/util/CollectionsUtil.kt @@ -76,17 +76,6 @@ inline fun Sequence.mergedBy(crossinline selector: (T, T) -> Boolean): Se } } -fun ListIterator.backwards(): ListIterator { - return object : ListIterator { - override fun hasNext(): Boolean = this@backwards.hasPrevious() - override fun hasPrevious(): Boolean = this@backwards.hasNext() - override fun next(): T = this@backwards.previous() - override fun previous(): T = this@backwards.next() - override fun nextIndex(): Int = this@backwards.previousIndex() - override fun previousIndex(): Int = this@backwards.nextIndex() - } -} - fun Map.merge(other: Map, f: (K, V, V) -> V = { k, v1, v2 -> v2 }): Map { val x = toMutableMap() other.forEach { (k, v) ->