base_custom 0.2.0

Use any characters as your own numeric base and convert to and from decimal.
Documentation
1
2
3
4
5
6
7
8
9
10
11
pub fn unique<T: Clone + PartialEq>(chars: Vec<T>) -> Vec<T> {
  let mut a = chars.clone();
  for x in (0..a.len()).rev() {
    for y in (x+1..a.len()).rev() {
      if a[x] == a[y] {
        a.remove(y);
      }
    }
  }
  a
}