diff --git a/docs/lectures.html b/docs/lectures.html index 803827f..108e1e0 100644 --- a/docs/lectures.html +++ b/docs/lectures.html @@ -330,7 +330,7 @@

Lecture Notes

11/8 Environments and Closures - +html 11/10 diff --git a/docs/lectures/04-hof.html b/docs/lectures/04-hof.html index c4eb027..14bd09b 100644 --- a/docs/lectures/04-hof.html +++ b/docs/lectures/04-hof.html @@ -794,6 +794,7 @@

QUIZ

(D) (a -> b -> b) -> b -> [a] -> b

(E) (b -> a -> b) -> b -> [a] -> b


+

Answer: D




@@ -827,6 +828,7 @@

QUIZ



Is foldr tail recursive?

+

Answer: No! It calls the binary operations on the results of the recursive call




diff --git a/docs/lectures/05-closure.html b/docs/lectures/05-closure.html index 32cecac..c661677 100644 --- a/docs/lectures/05-closure.html +++ b/docs/lectures/05-closure.html @@ -134,8 +134,8 @@

  • Lectures
  • Assignments
  • Links
  • -
  • Canvas
  • -
  • Piazza
  • +
  • Canvas
  • +
  • Piazza
  • @@ -194,8 +194,8 @@

    Nadia Polikarpova

  • Lectures
  • Assignments
  • Links
  • -
  • Canvas
  • -
  • Piazza
  • +
  • Canvas
  • +
  • Piazza
  • @@ -379,7 +379,6 @@

    QUIZ

    (D) Binop -> Expr -> Expr -> Expr

    (E) Binop -> Expr -> Value


    -

    Answer: B




    @@ -457,7 +456,6 @@

    QUIZ

    (B) 1

    (C) Runtime error


    -

    Answer: C




    @@ -503,7 +501,6 @@

    QUIZ

    (B) 1

    (C) Runtime error


    -

    Answer: B




    @@ -674,7 +671,6 @@

    QUIZ

    (D) Error: unbound variable x

    (E) Error: unbound variable y


    -

    Answer: C




    @@ -694,7 +690,6 @@

    QUIZ

    (D) Error: unbound variable x

    (E) Error: unbound variable y


    -

    Answer: C




    @@ -717,7 +712,6 @@

    QUIZ

    (D) 2

    (E) Error: multiple definitions of x


    -

    Answer: B




    @@ -858,7 +852,6 @@

    QUIZ

    (D) 10

    (E) 11


    -

    Answer: E




    @@ -939,7 +932,6 @@

    Rethinking our values

    let f = \x y -> x + y in f 1 ==> ??? -

    Conceptually, they both evaluate to a function that increments its argument




    @@ -1086,7 +1078,6 @@

    QUIZ

    (D) 10

    (E) 11


    -

    Answer: E




    @@ -1108,7 +1099,6 @@

    QUIZ

    (B) 11

    (C) 110


    -

    Answer: B




    @@ -1232,7 +1222,6 @@

    QUIZ

    (B) Dynamic

    (C) Neither


    -

    Answer: B




    @@ -1439,7 +1428,6 @@

    QUIZ

    (C) 1120

    (D) 1111


    -

    Answer: D




    @@ -1488,7 +1476,6 @@

    QUIZ

    (B) 11

    (C) 12


    -

    Answer: C




    @@ -1532,7 +1519,6 @@

    QUIZ

    (B) Evaluation does not terminate

    (C) Error: unbound variable f


    -

    Answer: C




    diff --git a/lectures.md b/lectures.md index bdd242c..d1c2143 100644 --- a/lectures.md +++ b/lectures.md @@ -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. | | diff --git a/site.hs b/site.hs index 81aff93..df661f1 100644 --- a/site.hs +++ b/site.hs @@ -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