Skip to content

Commit

Permalink
Merge pull request #110 from zakuroishikuro/patch-1
Browse files Browse the repository at this point in the history
Fix default arguments for minmax functions
  • Loading branch information
samchon authored Nov 6, 2022
2 parents f60c359 + 02388f9 commit aa97cb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/algorithm/mathematics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export function max<T>(items: T[], comp: Comparator<T> = less): T {
*
* @return A {@link Pair} of minimum & maximum values.
*/
export function minmax<T>(items: T[], comp: Comparator<T>): Pair<T, T> {
export function minmax<T>(items: T[], comp: Comparator<T> = less): Pair<T, T> {
let minimum: T = items[0];
let maximum: T = items[0];

Expand Down

0 comments on commit aa97cb4

Please sign in to comment.