Skip to main content

is_group

Function is_group 

pub fn is_group<T, F>(elements: &[T], operation: F) -> bool
where T: Copy + PartialEq, F: Fn(T, T) -> T + Copy,
Expand description

Commonly used facade items. Returns whether elements with operation form a group.