"min" and "max" in "std.algorithm" can be used with single values to pick up the min and max values, but it didn't mention how they can be used with ranges in the documentation: https://dlang.org/phobos/std_algorithm_comparison.html#.min