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
It appears the order of arguments is reversed inside fmap of the semigroup implementation (source). Is there motivation for this difference between foldRight in the two algebras?
The text was updated successfully, but these errors were encountered:
The behavior of
Semigroup.foldRight
andMonoid.foldRight
is different for non-commutative operations. For monoids, we have:For semigroups:
It appears the order of arguments is reversed inside
fmap
of the semigroup implementation (source). Is there motivation for this difference betweenfoldRight
in the two algebras?The text was updated successfully, but these errors were encountered: