pub fn complement<T>(f: impl Fn(T) -> bool) -> impl Fn(T) -> bool
Invert the boolean result of a function.