Open
Description
Set operations like setUnion
or setDiff
technically are only valid on sets (sorted array). This can lead to nasty, hard-to-notice bugs when someone forgets about it.
We should consider relaxing the requirements on the input. Note that we will still need to maintain the requirement for setMember
(unless we're willing to accept linear search there, which kinda defeats the point).