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
readonlyNonEmptyArray.union() does not allow ReadonlyArray as second curried argument.
pipe([1,2],readonlyNonEmptyArray.union(N.Eq)([]))// does not compile
In my code, I had to do some workaround like this in order to keep the ReadonlyNonEmptyArray type when unioning a ReadonlyNonEmptyArray with a ReadonlyArray
🚀 Feature request
Current Behavior
readonlyNonEmptyArray.union()
does not allowReadonlyArray
assecond
curried argument.In my code, I had to do some workaround like this in order to keep the
ReadonlyNonEmptyArray
type when unioning aReadonlyNonEmptyArray
with aReadonlyArray
EDIT 10.10 : Simpler workaround : use
concat
and thenuniq
Desired Behavior
and I could rewrite
doUnion
like this :Suggested Solution
Change signature of
readonlyNonEmptyArray
to acceptReadonlyArray
as second.Who does this impact? Who is this for?
People using
readonlyNonEmptyArray
Describe alternatives you've considered
Additional context
Your environment
The text was updated successfully, but these errors were encountered: