Function bitcoinnode_interface::erase_last_kelements
source · pub fn erase_last_kelements<T, Comparator>(
elements: &mut Vec<T>,
comparator: Comparator,
k: usize,
predicate: fn(_0: &NodeEvictionCandidate) -> bool
)
Expand description
| Sort an array by the specified comparator, | then erase the last K elements where | predicate is true. |