import { max } from "https://deno.land/x/itertools@v1.1.1/mod.ts";
Return the largest item in an iterable. Only works for numbers, as ordering
is pretty poorly defined on any other data type in JS. The optional keyFn
argument specifies a one-argument ordering function like that used for
sorted().
If the iterable is empty, undefined
is returned.
If multiple items are maximal, the function returns either one of them, but which one is not defined.