friendly-chess 0.6.0

friendly neighborhood chess engine
Documentation
1
2
3
4
5
6
7
8
9
10
11
use std::{collections::HashSet, hash::Hash};

pub fn compare_vec<T>(a: &[T], b: &[T]) -> bool
where
    T: Eq + Hash,
{
    let a: HashSet<_> = a.iter().collect();
    let b: HashSet<_> = b.iter().collect();

    a == b
}