From: Jim Date: Sun, 1 Feb 2015 07:52:00 +0000 (-0500) Subject: update week1 notes X-Git-Url: http://lambda.jimpryor.net/git/gitweb.cgi?p=lambda.git;a=commitdiff_plain;h=c6aa6ab0a05bdf464373ee31cb8cd93285079ca7;hp=d16b4f077f3da9a2c79e2092fdc7e5ea1a2812c0 update week1 notes --- diff --git a/week1.mdwn b/week1.mdwn index 53d69dda..a419c877 100644 --- a/week1.mdwn +++ b/week1.mdwn @@ -558,12 +558,12 @@ It may be helpful to contrast these recursive-style definitons to the way one wo `let`   `empty? match` λ `xs.` *this definition left as an exercise*; -  `tail match` λ `xs.` *this definition left as an exercise* +  `tail match` λ `xs.` *this definition left as an exercise*;   `length match` λ `xs. let` -       `n := 0;` -       `while not (empty? xs) do` -         `n := n + 1;` -         `xs := tail xs` -       `end` -     `in n` +              `n := 0;` +              `while not (empty? xs) do` +                `n := n + 1;` +                `xs := tail xs` +              `end` +            `in n`