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
foldr c n (Coyoneda k a) =foldr (c . k) n a
foldl f b (Coyoneda k a) =foldl (\acc -> f acc . k) go b a
-- foldl', foldr', foldl1, foldr1 similarly
toList (Coyoneda k a) =map k (toList a) -- but this is arguably worse than the default!length (Coyoneda _ a) =length a
null (Coyoneda _ a) =null a
Unfortunately, I don't believe it's possible to do anything about fold, maximum, minimum, sum, product, or elem.
The text was updated successfully, but these errors were encountered:
In particular:
Unfortunately, I don't believe it's possible to do anything about
fold
,maximum
,minimum
,sum
,product
, orelem
.The text was updated successfully, but these errors were encountered: