From: Jim Pryor Date: Sun, 21 Nov 2010 20:35:16 +0000 (-0500) Subject: week9 tweak X-Git-Url: http://lambda.jimpryor.net/git/gitweb.cgi?p=lambda.git;a=commitdiff_plain;h=9625fc39cff6e36e7ba0edac98fc8fda387f17ef;ds=inline week9 tweak Signed-off-by: Jim Pryor --- diff --git a/week9.mdwn b/week9.mdwn index f5beebb4..b2fbb3aa 100644 --- a/week9.mdwn +++ b/week9.mdwn @@ -350,7 +350,7 @@ Let's consider how to interpet our new syntactic forms `newref`, `deref`, and `s ... | Setref (expr1, expr2) -> let (Index n, s') = eval expr1 g s - (* note that s' may be different from s, if expr itself contained any mutation operations *) + (* note that s' may be different from s, if expr1 itself contained any mutation operations *) in let (new_value, s'') = eval expr2 g s' (* now we create a list which is just like s'' except it has new_value in index n *) in let rec replace_nth lst m =