Skip to content

Commit

Permalink
update page
Browse files Browse the repository at this point in the history
  • Loading branch information
nadia-polikarpova committed Nov 8, 2023
1 parent 5385eec commit 3488a5d
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 22 deletions.
2 changes: 1 addition & 1 deletion docs/lectures.html
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ <h1>Lecture Notes</h1>
<tr class="even">
<td style="text-align: center;">11/8</td>
<td style="text-align: left;">Environments and Closures</td>
<td style="text-align: center;"></td>
<td style="text-align: center;"><a href="lectures/05-closure.html">html</a></td>
</tr>
<tr class="odd">
<td style="text-align: center;">11/10</td>
Expand Down
2 changes: 2 additions & 0 deletions docs/lectures/04-hof.html
Original file line number Diff line number Diff line change
Expand Up @@ -794,6 +794,7 @@ <h2 id="quiz-1">QUIZ</h2>
<p><strong>(D)</strong> <code class="sourceCode haskell">(a <span class="ot">-&gt;</span> b <span class="ot">-&gt;</span> b) <span class="ot">-&gt;</span> b <span class="ot">-&gt;</span> [a] <span class="ot">-&gt;</span> b</code></p>
<p><strong>(E)</strong> <code class="sourceCode haskell">(b <span class="ot">-&gt;</span> a <span class="ot">-&gt;</span> b) <span class="ot">-&gt;</span> b <span class="ot">-&gt;</span> [a] <span class="ot">-&gt;</span> b</code></p>
<p><br></p>
<p><em>Answer:</em> D</p>
<p><br>
<br>
<br>
Expand Down Expand Up @@ -827,6 +828,7 @@ <h2 id="quiz-2">QUIZ</h2>
<br>
<br></p>
<p>Is <code class="sourceCode haskell"><span class="fu">foldr</span></code> <strong>tail recursive</strong>?</p>
<p><em>Answer:</em> No! It calls the binary operations on the results of the recursive call</p>
<p><br>
<br>
<br>
Expand Down
22 changes: 4 additions & 18 deletions docs/lectures/05-closure.html
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@
<li><a href="https://nadia-polikarpova.github.io/cse130-web/lectures.html">Lectures</a></li>
<li><a href="https://nadia-polikarpova.github.io/cse130-web/assignments.html">Assignments</a></li>
<li><a href="https://nadia-polikarpova.github.io/cse130-web/links.html">Links</a></li>
<li><a href="https://canvas.ucsd.edu/courses/45541" id="roundbutton" target="_blank"><i class="fa fa-twitter"></i>Canvas</a></li>
<li><a href="https://www.piazza.com/ucsd/spring2023/cse130/home" id="roundbutton" target="_blank"><i class="fa fa-twitter"></i>Piazza</a></li>
<li><a href="https://canvas.ucsd.edu/courses/49365" id="roundbutton" target="_blank"><i class="fa fa-twitter"></i>Canvas</a></li>
<li><a href="https://www.piazza.com/ucsd/fall2023/cse130/home" id="roundbutton" target="_blank"><i class="fa fa-twitter"></i>Piazza</a></li>
</ul>
</div>
<!-- /.navbar-collapse -->
Expand Down Expand Up @@ -194,8 +194,8 @@ <h1 class="font-style-inline-small-h1">Nadia Polikarpova</h1>
<li><a href="https://nadia-polikarpova.github.io/cse130-web/lectures.html">Lectures</a></li>
<li><a href="https://nadia-polikarpova.github.io/cse130-web/assignments.html">Assignments</a></li>
<li><a href="https://nadia-polikarpova.github.io/cse130-web/links.html">Links</a></li>
<li><a href="https://canvas.ucsd.edu/courses/45541" id="roundbutton" target="_blank"><i class="fa fa-twitter"></i>Canvas</a></li>
<li><a href="https://www.piazza.com/ucsd/spring2023/cse130/home" id="roundbutton" target="_blank"><i class="fa fa-twitter"></i>Piazza</a></li>
<li><a href="https://canvas.ucsd.edu/courses/49365" id="roundbutton" target="_blank"><i class="fa fa-twitter"></i>Canvas</a></li>
<li><a href="https://www.piazza.com/ucsd/fall2023/cse130/home" id="roundbutton" target="_blank"><i class="fa fa-twitter"></i>Piazza</a></li>
</p>
<button type="button" class="btn btn-default" data-dismiss="modal"><i class="fa fa-times"></i>Close</button>
</div>
Expand Down Expand Up @@ -379,7 +379,6 @@ <h2 id="quiz">QUIZ</h2>
<p><strong>(D)</strong> <code class="sourceCode haskell"><span class="dt">Binop</span> <span class="ot">-&gt;</span> <span class="dt">Expr</span> <span class="ot">-&gt;</span> <span class="dt">Expr</span> <span class="ot">-&gt;</span> <span class="dt">Expr</span></code></p>
<p><strong>(E)</strong> <code class="sourceCode haskell"><span class="dt">Binop</span> <span class="ot">-&gt;</span> <span class="dt">Expr</span> <span class="ot">-&gt;</span> <span class="dt">Value</span></code></p>
<p><br></p>
<p><em>Answer:</em> B</p>
<p><br>
<br>
<br>
Expand Down Expand Up @@ -457,7 +456,6 @@ <h2 id="quiz-1">QUIZ</h2>
<p><strong>(B)</strong> <code class="sourceCode haskell"><span class="dv">1</span></code></p>
<p><strong>(C)</strong> Runtime error</p>
<p><br></p>
<p><em>Answer:</em> C</p>
<p><br>
<br>
<br>
Expand Down Expand Up @@ -503,7 +501,6 @@ <h2 id="quiz-2">QUIZ</h2>
<p><strong>(B)</strong> <code class="sourceCode haskell"><span class="dv">1</span></code></p>
<p><strong>(C)</strong> Runtime error</p>
<p><br></p>
<p><em>Answer:</em> B</p>
<p><br>
<br>
<br>
Expand Down Expand Up @@ -674,7 +671,6 @@ <h2 id="quiz-3">QUIZ</h2>
<p><strong>(D)</strong> Error: unbound variable <code class="sourceCode haskell">x</code></p>
<p><strong>(E)</strong> Error: unbound variable <code class="sourceCode haskell">y</code></p>
<p><br></p>
<p><em>Answer:</em> C</p>
<p><br>
<br>
<br>
Expand All @@ -694,7 +690,6 @@ <h2 id="quiz-4">QUIZ</h2>
<p><strong>(D)</strong> Error: unbound variable <code class="sourceCode haskell">x</code></p>
<p><strong>(E)</strong> Error: unbound variable <code class="sourceCode haskell">y</code></p>
<p><br></p>
<p><em>Answer:</em> C</p>
<p><br>
<br>
<br>
Expand All @@ -717,7 +712,6 @@ <h2 id="quiz-5">QUIZ</h2>
<p><strong>(D)</strong> <code class="sourceCode haskell"><span class="dv">2</span></code></p>
<p><strong>(E)</strong> Error: multiple definitions of <code class="sourceCode haskell">x</code></p>
<p><br></p>
<p><em>Answer:</em> B</p>
<p><br>
<br>
<br>
Expand Down Expand Up @@ -858,7 +852,6 @@ <h2 id="quiz-6">QUIZ</h2>
<p><strong>(D)</strong> <code class="sourceCode haskell"><span class="dv">10</span></code></p>
<p><strong>(E)</strong> <code class="sourceCode haskell"><span class="dv">11</span></code></p>
<p><br></p>
<p><em>Answer:</em> E</p>
<p><br>
<br>
<br>
Expand Down Expand Up @@ -939,7 +932,6 @@ <h2 id="rethinking-our-values">Rethinking our values</h2>
<span id="cb37-6"><a href="#cb37-6" aria-hidden="true" tabindex="-1"></a><span class="kw">let</span> f <span class="ot">=</span> \x y <span class="ot">-&gt;</span> x <span class="op">+</span> y <span class="kw">in</span></span>
<span id="cb37-7"><a href="#cb37-7" aria-hidden="true" tabindex="-1"></a>f <span class="dv">1</span></span>
<span id="cb37-8"><a href="#cb37-8" aria-hidden="true" tabindex="-1"></a><span class="op">==&gt;</span> <span class="op">???</span></span></code></pre></div>
<p>Conceptually, they both evaluate to a function that increments its argument</p>
<p><br>
<br>
<br>
Expand Down Expand Up @@ -1086,7 +1078,6 @@ <h2 id="quiz-7">QUIZ</h2>
<p><strong>(D)</strong> <code class="sourceCode haskell"><span class="dv">10</span></code></p>
<p><strong>(E)</strong> <code class="sourceCode haskell"><span class="dv">11</span></code></p>
<p><br></p>
<p><em>Answer:</em> E</p>
<p><br>
<br>
<br>
Expand All @@ -1108,7 +1099,6 @@ <h2 id="quiz-8">QUIZ</h2>
<p><strong>(B)</strong> <code class="sourceCode haskell"><span class="dv">11</span></code></p>
<p><strong>(C)</strong> <code class="sourceCode haskell"><span class="dv">110</span></code></p>
<p><br></p>
<p><em>Answer:</em> B</p>
<p><br>
<br>
<br>
Expand Down Expand Up @@ -1232,7 +1222,6 @@ <h2 id="quiz-9">QUIZ</h2>
<p><strong>(B)</strong> Dynamic</p>
<p><strong>(C)</strong> Neither</p>
<p><br></p>
<p><em>Answer:</em> B</p>
<p><br>
<br>
<br>
Expand Down Expand Up @@ -1439,7 +1428,6 @@ <h2 id="quiz-10">QUIZ</h2>
<p><strong>(C)</strong> 1120</p>
<p><strong>(D)</strong> 1111</p>
<p><br></p>
<p><em>Answer:</em> D</p>
<p><br>
<br>
<br>
Expand Down Expand Up @@ -1488,7 +1476,6 @@ <h2 id="quiz-11">QUIZ</h2>
<p><strong>(B)</strong> 11</p>
<p><strong>(C)</strong> 12</p>
<p><br></p>
<p><em>Answer:</em> C</p>
<p><br>
<br>
<br>
Expand Down Expand Up @@ -1532,7 +1519,6 @@ <h2 id="quiz-12">QUIZ</h2>
<p><strong>(B)</strong> Evaluation does not terminate</p>
<p><strong>(C)</strong> Error: unbound variable <code class="sourceCode haskell">f</code></p>
<p><br></p>
<p><em>Answer:</em> C</p>
<p><br>
<br>
<br>
Expand Down
2 changes: 1 addition & 1 deletion lectures.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Lecture schedule is subject to change!
| 11/1 | Higher Order Functions | [html][lec5] |
| 11/3 | contd. | |
| 11/6 | **Midterm** | |
| 11/8 | Environments and Closures | |
| 11/8 | Environments and Closures | [html][lec6] |
| 11/10 | *No lecture: Veterans Day* | |
| 11/13 | contd. | |
| 11/15 | contd. | |
Expand Down
4 changes: 2 additions & 2 deletions site.hs
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ main = hakyll $ do
match "lectures/01-*" $ crunchWithCtxCustom "final" postCtx
match "lectures/02-*" $ crunchWithCtxCustom "final" postCtx
match "lectures/03-*" $ crunchWithCtxCustom "final" postCtx
match "lectures/04-*" $ crunchWithCtxCustom "lecture" postCtx
-- match "lectures/05-*" $ crunchWithCtxCustom "final" postCtx
match "lectures/04-*" $ crunchWithCtxCustom "final" postCtx
match "lectures/05-*" $ crunchWithCtxCustom "lecture" postCtx
-- match "lectures/06-*" $ crunchWithCtxCustom "final" postCtx
-- match "lectures/07-*" $ crunchWithCtxCustom "final" postCtx
-- match "lectures/08-*" $ crunchWithCtxCustom "final" postCtx
Expand Down

0 comments on commit 3488a5d

Please sign in to comment.