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

Add sort.Interface qualifying methods #11

Closed
JesseCoretta opened this issue Jun 17, 2024 · 0 comments · Fixed by #10
Closed

Add sort.Interface qualifying methods #11

JesseCoretta opened this issue Jun 17, 2024 · 0 comments · Fixed by #10
Assignees
Labels
enhancement New feature or request

Comments

@JesseCoretta
Copy link
Owner

Add the following Stack methods

  • Swap(int, int)
  • Less(int, int) bool

The above two methods, once added, will allow the Stack type to qualify for sort.Interface-based sorting procedures.

Additionally, add SetLessFunc(...func(int, int) bool) for Stack instances to allow user-submission of suitable closures.

@JesseCoretta JesseCoretta added the enhancement New feature or request label Jun 17, 2024
@JesseCoretta JesseCoretta self-assigned this Jun 17, 2024
@JesseCoretta JesseCoretta linked a pull request Jun 17, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant