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

orderedInsert

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

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

Parameters

element - the element to insert

comparison - the comparison function