pub fn swapped_in<K: PartialEq + Clone, V: Clone>( table: &[(K, V)], key: &K, value: V, ) -> Vec<(K, V)>