Skip to main content

push_entry

Function push_entry 

Source
pub fn push_entry(entries: &mut Vec<String>, entry: String)
Expand description

Append an entry, skipping it when it repeats the previous one.

Only consecutive duplicates are dropped: a value the user returns to after trying something else is worth its own slot in the list.