Function lattices::algebra::right_distributes
source ยท pub fn right_distributes<S: Debug + PartialEq + Clone, const N: usize>(
items: &[S; N],
f: impl Fn(S, S) -> S,
g: impl Fn(S, S) -> S,
) -> Result<(), &'static str>
Expand description
Defines the right distributive property.
(b+c)a = ba + ca