Extensions to the core Basics library.
Like Basics.max, but it works on non-comparable types by taking a custom function. For example:
maxBy Date.toTime earlyDate laterDate
--> laterDateLike Basics.min, but it works on non-comparable types by taking a custom function. For example:
minBy Date.toTime earlyDate laterDate
--> earlyDate
Like
Basics.compare, with a custom function. For example: