tuweni / org.apache.tuweni.kademlia / kotlin.collections.MutableList

Extensions for kotlin.collections.MutableList

orderedInsert

Insert an element into a mutable list, based on a comparison function.

fun <E> MutableList<E>.orderedInsert(element: E, comparison: (E, E) -> Int): Unit