Skip to main content

merge_pool

Function merge_pool 

Source
fn merge_pool(pool: &mut Vec<String>, additions: &[String]) -> Vec<String>
Expand description

Append additions to pool, skipping blanks and exact duplicates (against both the existing pool and earlier additions). Returns the strings actually added (so an uninstall can remove exactly those). Order-preserving and non-clobbering.