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's a bit sad that #24 will fail if there are zero lines. Maybe we could detect whether the output type is an instance of Monoid, and start the fold with mempty if that is the case?
At the very least, we should detect (+) and (*) as a special case and start the fold at 0 and 1, respectively.
The text was updated successfully, but these errors were encountered:
It's a bit sad that #24 will fail if there are zero lines. Maybe we could detect whether the output type is an instance of
Monoid
, and start thefold
with mempty if that is the case?At the very least, we should detect
(+)
and(*)
as a special case and start the fold at 0 and 1, respectively.The text was updated successfully, but these errors were encountered: