Allow arbitrary arrays for most set operations
Open
enhancement
stdlib
- Dominant language
- Jsonnet
- Stars
- 7.6k
- Forks
- 475
- PR merge metrics
- No merged PRs in 30d
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).
Contributor guide
Assessment
This issue has not been assessed yet.