-
-
Notifications
You must be signed in to change notification settings - Fork 950
Implement Min/Max as variadic functions #224
Copy link
Copy link
Open
Labels
blockedProgress is currently blocked by another task, dependency, or external factor.Progress is currently blocked by another task, dependency, or external factor.breaking changeIntroduces changes that break backward compatibility or alter the public API.Introduces changes that break backward compatibility or alter the public API.
Milestone
Metadata
Metadata
Assignees
Labels
blockedProgress is currently blocked by another task, dependency, or external factor.Progress is currently blocked by another task, dependency, or external factor.breaking changeIntroduces changes that break backward compatibility or alter the public API.Introduces changes that break backward compatibility or alter the public API.
Having
Min/Maxfunctions take a slice as an argument is a bit inconvenient when you have just two variables because then you have to create an array out of them just for calling Min/Max functions.And with variadic version you still could provide a slice if you wished by using the
...operator.