Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(find): implement maxn & minn for variadic count items #557

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dashjay
Copy link

@dashjay dashjay commented Nov 12, 2024

After reviewing code in issue #224,I implemented a version in more convenient way, I do not agree to change the interface, because the interface of the base library once opened to change will cause a lot of dissatisfaction.

func MaxN[T constraints.Ordered](items ...T) T {
	return Max(items)
}

func MinN[T constraints.Ordered](items ...T) T {
	return Min(items)
}

@dashjay
Copy link
Author

dashjay commented Nov 12, 2024

#224

@dashjay
Copy link
Author

dashjay commented Nov 12, 2024

@samber Thank you for open such a nice package!
PTLA~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant