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

added function to compare element of 2 slices with ignored order of element #41

Merged
merged 2 commits into from
Apr 26, 2024

Conversation

irdaislakhuafa
Copy link
Owner

  • feat: introduce utility to compare slice elements
  • feat(collections): check if elements of 2 slices are equal with ignored order

Introduce a new utility `IsElementsEquals` to compare elements in two slices.

This utility is used to compare the elements of two slices regardless of their order.
It can be used to verify that two slices contain the same elements, even if they are not in the same order.
…ed order

Adds a new function `IsElementsEquals` to the `collections` package that checks if the elements of two slices are equal, ignoring the order of the elements. This can be useful for comparing two slices that contain the same elements but in a different order.
@irdaislakhuafa irdaislakhuafa added the enhancement New feature or request label Apr 26, 2024
@irdaislakhuafa irdaislakhuafa merged commit 9403ce4 into master Apr 26, 2024
1 check passed
@irdaislakhuafa irdaislakhuafa deleted the collections branch April 26, 2024 11:33
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 this pull request may close these issues.

None yet

1 participant