winitzki / sofp

A free book: "The Science of Functional Programming"
GNU General Public License v2.0
1.41k stars 97 forks source link

Example 2.2.5.2 readability minor issue #86

Closed andreas-roehler closed 10 months ago

andreas-roehler commented 10 months ago

When defining

type D4 = (Double, Double, Double, Double)

the last double refers to the length of a list, which only requires an Int. Seeing that, may fasten understanding a little bit. Likewise, later on, when accumulators are initialized, the sum could get a 0.0 instead of 0.

winitzki commented 10 months ago

Makes sense. I will revise the text.

winitzki commented 10 months ago

Will be fixed in master now.