📚Cheatsheets

Cheatsheet collection for go, rust, python, shell and javascript.

Remove duplicate value in vector

Filter vector to unique list.

// from 
vec![1,1,2,3]
// to
vec![1,2,3]
data
    .into_iter()
    .collect::<HashSet<_>>()
    .into_iter()
    .collect::<Vec<_>>()