week1 typo, thanks Kyle
authorJim <jim.pryor@nyu.edu>
Sun, 1 Feb 2015 20:50:12 +0000 (15:50 -0500)
committerJim <jim.pryor@nyu.edu>
Sun, 1 Feb 2015 20:50:12 +0000 (15:50 -0500)
topics/week1.mdwn

index 82e1fa6..4e1f0dd 100644 (file)
@@ -383,7 +383,7 @@ is a pattern, meaning the same as `x1 & x2 & []`. Note that while `x & xs` match
 For the time being, these are the only patterns we'll allow. But since the definition of patterns is recursive, this permits very complex patterns. What would this evaluate to:
 
     let
-      ([xs, ys], [z:zs, ws]) match ([[], [1]], [[10, 20, 30], [0]])
+      ([xs, ys], [z & zs, ws]) match ([[], [1]], [[10, 20, 30], [0]])
     in z & ys
 
 Also, we will permit complex patterns in &lambda;-expressions, too. So you can write: