You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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]
The text was updated successfully, but these errors were encountered: