Data.List.NonEmpty.intersect and Data.List.NonEmpty.intersectBy throw when intersection empty #216
Labels
good first issue
First-time contributors who are looking to help should work on these issues.
type: bug
Something that should function correctly isn't.
I think they should be changed to match the implementation of the corresponding functions in
NonEmptyArray
, i.e. return aList
instead of aNonEmptyList
.Alternatively, I saw the discussion in #184 about potentially removing the set functions from
Array
,List
,NonEmptyList
,NonEmptyArray
, etc. and replacing them with an ordered set type. This might be more evidence supporting those who want to remove them.The text was updated successfully, but these errors were encountered: