pub fn numbers_within<N>(maxdiff: N) -> impl Fn(N, N) -> boolwhere N: CheckedSub + Num + Ord,
Get a function that reports whether two numbers are within maxdiff of each other (either direction).