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: pretext/IntroRecursion/TheThreeLawsofRecursion.ptx
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@
29
29
algorithm our primary data structure is a list, so we must focus our
30
30
state-changing efforts on the list. Since the base case is a list of
31
31
length 1, a natural progression toward the base case is to shorten the
32
-
list. This is exactly what happens on line 5 of <xrefref="intro-recursion_calculatingthe-sumofa-listof-numbers"/> when we call <c>listsum</c> with a shorter list.</p>
32
+
list. This is exactly what happens on line 5 of the ActiveCode in <xrefref="intro-recursion_calculating-the-sum-of-a-list-of-numbers"/> when we call <c>listsum</c> with a shorter list.</p>
33
33
<p>The final law is that the algorithm must call itself. This is the very
34
34
definition of recursion. Recursion is a confusing concept to many
35
35
beginning programmers. As a novice programmer, you have learned that
0 commit comments