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
I understand the logic behind the current signature:
foldr1::forallfab. Foldable1f=> (b->b->b) ->fb->b
In that, if I have a mapping from a -> b, then I can pre-map unconditionally, and derive the latter signature. Unfortunately that's not actually what I want to do:
I only want the mapping to apply to the terminal value.
I want to otherwise combine with the combining function.
I don't want to waste an entire traversal to make the signature work.
I feel like there's a missed opportunity with the current signature. To be honest, I almost never want the current signature.
The text was updated successfully, but these errors were encountered:
Should the signature of foldr1 (and similarly foldl1) be:
I understand the logic behind the current signature:
In that, if I have a mapping from a -> b, then I can pre-map unconditionally, and derive the latter signature. Unfortunately that's not actually what I want to do:
I feel like there's a missed opportunity with the current signature. To be honest, I almost never want the current signature.
The text was updated successfully, but these errors were encountered: