Function lattices::algebra::absorbing_element

source ยท
pub fn absorbing_element<S: Debug + PartialEq + Clone, const N: usize>(
    items: &[S; N],
    f: impl Fn(S, S) -> S,
    z: S,
) -> Result<(), &'static str>
Expand description

Defines the absorbing_element property.

An element z is absorbing if az = z and za = z for all a.