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
Yoneda m >>= k =Yoneda (\f -> m id>>=\a -> runYoneda (k a) f)
I believe an alternative would be
Yoneda m >>= k =Yoneda (\f -> join . m $\a -> runYoneda (k a) f)
The most obvious reason to prefer the current implementation is that it can take advantage of fmap id = id optimizations in some situations. Is this the only reason?
The text was updated successfully, but these errors were encountered:
I believe an alternative would be
The most obvious reason to prefer the current implementation is that it can take advantage of
fmap id = id
optimizations in some situations. Is this the only reason?The text was updated successfully, but these errors were encountered: