Skip to content

Instantly share code, notes, and snippets.

@theikkila
Created November 29, 2018 14:53
Show Gist options
  • Save theikkila/10c5b5e8a7bfd041d1cb3afc99c475d8 to your computer and use it in GitHub Desktop.
Save theikkila/10c5b5e8a7bfd041d1cb3afc99c475d8 to your computer and use it in GitHub Desktop.
pub fn split_to_set(raw: String) -> HashSet<String> {
raw
.split(",")
.map(|member| member.trim().to_string())
.collect()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment