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

Inaccurate result for union examples #502

Closed
brandonmcconnell opened this issue Sep 29, 2022 · 1 comment · Fixed by #503
Closed

Inaccurate result for union examples #502

brandonmcconnell opened this issue Sep 29, 2022 · 1 comment · Fixed by #503

Comments

@brandonmcconnell
Copy link
Contributor

Both in the main README and in the comment within the linked source, the result is presented as [1, 2, 3, 4, 5, 6], but the actual result is [1, 2, 5, 6, 3, 4], since arrays intrinsically respect insertion order.

I found this confusing as it seemed to suggest that union also employed sorting of its own, when in fact it does not, but was rather a misforecasted result.

TL;DR

Re union (in README | linked source), [1, 2, 3, 4, 5, 6][1, 2, 5, 6, 3, 4]

@brandonmcconnell
Copy link
Contributor Author

This issue will be fixed by merging PR #503

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 a pull request may close this issue.

1 participant