static double minOfDoubles(Iterable l) { Iterator it = iterator(l); if (!it.hasNext()) ret Double.NaN; double d = it.next(); while (it.hasNext()) d = min(d, it.next()); ret d; }