X-Git-Url: http://lambda.jimpryor.net/git/gitweb.cgi?p=lambda.git;a=blobdiff_plain;f=topics%2Fweek1.mdwn;h=4e1f0ddaca7f39968d1adfc60956289968cbeaf1;hp=82e1fa63b3f944c2b59cd780f1ea994386092cb5;hb=8f3ef33f3f9bc089b5590f660517977b1b3c0972;hpb=dca6ccfb675bdeff343a2aad1514e6b6a170b0d6 diff --git a/topics/week1.mdwn b/topics/week1.mdwn index 82e1fa63..4e1f0dda 100644 --- a/topics/week1.mdwn +++ b/topics/week1.mdwn @@ -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 λ-expressions, too. So you can write: