From: Jim Date: Sun, 1 Feb 2015 20:50:12 +0000 (-0500) Subject: week1 typo, thanks Kyle X-Git-Url: http://lambda.jimpryor.net/git/gitweb.cgi?p=lambda.git;a=commitdiff_plain;h=8f3ef33f3f9bc089b5590f660517977b1b3c0972 week1 typo, thanks Kyle --- 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: