pub fn is_commutative<T, F>(elements: &[T], operation: F) -> boolwhere T: Copy + PartialEq, F: Fn(T, T) -> T + Copy,
Returns whether operation is commutative over elements.
operation
elements