-
-
Notifications
You must be signed in to change notification settings - Fork 215
Open
Description
There is currently a list.max function in the stdlib, but not a list.min function.
This can lead to clunky code when list.max is used to retrieve the minimum value from a list.
let min = list.max([1, 2, 3], order.reverse(int.compare))I suggest also adding list.min to both avoid this clunkiness and make the stdlib less surprising (I was certainly surprised there was no list.min when there was a list.max). It seems a bit inconsistent to have a max and not a min, and is common in various other equivalent libraries that provide a max.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels