Some variations of the same idea
diamet(itr) = -(-(extrema(itr)...))
diameter(itr) = [-1 1]*[extrema(itr)...]