Skip to content

Conversation

@zipzap11
Copy link
Contributor

  • not consistently returning result with same order

slice.go Outdated
return nil
}

var allItem []T
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

allItems

slice.go Outdated
allItem = Unique(allItem)
var result []T
for item, count := range itemCountMap {
for _, item := range allItem {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tambahin unit testnya king

@zipzap11 zipzap11 force-pushed the bugfix/remove-side-effect branch from 4859764 to 5724cf9 Compare October 27, 2025 02:49
@zipzap11 zipzap11 merged commit 013a535 into master Oct 30, 2025
1 check passed
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.

6 participants