[Haskell-beginners] Foldable for (,)

Jonathon Delgado voldermort at hotmail.com
Sun Apr 23 08:21:34 UTC 2017


I've seen many threads, including the one going on now, about why we need to have:

length (2,3) = 1
product (2,3) = 3
sum (2,3) = 3
or (True,False) = False

but the justifications all go over my head. Is there a beginner-friendly explanation for why such seemingly unintuitive operations should be allowed by default?


More information about the Beginners mailing list