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
These are versions of Ior#merge and Align#alignCombine that use explicit functions rather than Semigroup instances.
Motivation: alignMergeWith is useful in cases where the logic in case of a "conflict" doesn't match the default Semigroup instance. It is also useful in places where relying on a specific Semigroup makes the code brittle. For example, when combining nested Maps and NonEmptyMaps, changing NonEmptyMap to Map might introduce subtle errors due to different Semigroup semantics - see #3377.
The text was updated successfully, but these errors were encountered:
These are versions of
Ior#merge
andAlign#alignCombine
that use explicit functions rather thanSemigroup
instances.Motivation:
alignMergeWith
is useful in cases where the logic in case of a "conflict" doesn't match the defaultSemigroup
instance. It is also useful in places where relying on a specificSemigroup
makes the code brittle. For example, when combining nestedMap
s andNonEmptyMap
s, changingNonEmptyMap
toMap
might introduce subtle errors due to differentSemigroup
semantics - see #3377.The text was updated successfully, but these errors were encountered: