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
Copy file name to clipboardExpand all lines: docs/modules.html
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -93,7 +93,7 @@ <h1>Modules</h1>
93
93
ghci> transpose [[1,2,3],[4,5,6],[7,8,9]]
94
94
[[1,4,7],[2,5,8],[3,6,9]]
95
95
ghci> transpose ["hey","there","folks"]
96
-
["htg","ehu","yey","rs","e"]
96
+
["htf","eho","yel","rk","es"]
97
97
</pre>
98
98
<p>Say we have the polynomials <i>3x<sup>2</sup> + 5x + 9</i>, <i>10x<sup>3</sup> + 9</i> and <i>8x<sup>3</sup> + 5x<sup>2</sup> + x - 1</i> and we want to add them together. We can use the lists <spanclass="fixed">[0,3,5,9]</span>, <spanclass="fixed">[10,0,0,9]</span> and <spanclass="fixed">[8,5,1,-1]</span> to represent them in Haskell. Now, to add them, all we have to do is this:</p>
0 commit comments