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
So I punted on making Star a Monoid and I regret that now after using it a bit. I had an idea of doing something like Writer and parameterizing to a specific Monad. So to make one, you do something like:
constMaybeStar=Star(Maybe)// MaybeStar(Maybe.of) ??MaybeStar.empty()// and of course `concat` will remain basically just flatMapping for left to right composition.
Star is good, but it could be great
So I punted on making
Star
aMonoid
and I regret that now after using it a bit. I had an idea of doing something likeWriter
and parameterizing to a specificMonad
. So to make one, you do something like:Then we could use
mconcat
to build a composition:The text was updated successfully, but these errors were encountered: