X-Git-Url: http://lambda.jimpryor.net/git/gitweb.cgi?p=lambda.git;a=blobdiff_plain;f=week1.mdwn;h=90ebbf1e8168348707d17b077f17e6acfdbf0b50;hp=53d69ddaaf074c02a61f6ae949257e7452a21b99;hb=f0c750e3d711ce8edf23a47b2040be55a8212c20;hpb=d16b4f077f3da9a2c79e2092fdc7e5ea1a2812c0 diff --git a/week1.mdwn b/week1.mdwn index 53d69dda..90ebbf1e 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`