-
Notifications
You must be signed in to change notification settings - Fork 69
Open
Labels
purs-0.15A reminder to address this issue or merge this PR before we release PureScript v0.15.0A reminder to address this issue or merge this PR before we release PureScript v0.15.0status: blockedThis issue or PR is blocked by something and cannot make progress.This issue or PR is blocked by something and cannot make progress.type: breaking changeA change that requires a major version bump.A change that requires a major version bump.
Description
We already made nub use Ord by default in #91, but there are a few other unnecessarily quadratic functions in this library still which probably deserve the same treatment. I think these are union, intersect, and difference.
As well as being quadratic, union and difference have a strange-seeming behaviour where duplicates are only preserved in the first argument:
union [0, 0] [1, 1] == [0, 0, 1]See #56 for more info. We ought to be careful about changing this behaviour but I think we should consider it, since I think it’s very likely to trip people up and we will be making breaking changes to these functions anyway if we do this.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
purs-0.15A reminder to address this issue or merge this PR before we release PureScript v0.15.0A reminder to address this issue or merge this PR before we release PureScript v0.15.0status: blockedThis issue or PR is blocked by something and cannot make progress.This issue or PR is blocked by something and cannot make progress.type: breaking changeA change that requires a major version bump.A change that requires a major version bump.