pub fn strip_matching_prefixes<'haystack>(
needle: &str,
haystack: impl IntoIterator<Item = &'haystack str>,
) -> Vec<String>Expand description
use parse_up::util::strip_matching_prefixes;
assert_eq!(
strip_matching_prefixes("hel", ["hello", "helsinki"]),
["lo", "sinki"],
);
assert_eq!(
strip_matching_prefixes("bar", ["bartender", "bar"]),
["tender"],
);