X-Git-Url: http://lambda.jimpryor.net/git/gitweb.cgi?p=lambda.git;a=blobdiff_plain;f=exercises%2Fassignment3.mdwn;h=e4ccfe204b84177c6d29467ab47e5e87b4705840;hp=9ed9e35bcbcf527ca9a1c128480bb6c9e291ab5d;hb=397f393c83e65a1b34f842d64c2e0eaa7d8246e3;hpb=456fa2f81fc4d3378162bb85a11756a188c6ed4c diff --git a/exercises/assignment3.mdwn b/exercises/assignment3.mdwn index 9ed9e35b..e4ccfe20 100644 --- a/exercises/assignment3.mdwn +++ b/exercises/assignment3.mdwn @@ -6,9 +6,8 @@ 2. What does `[ 10*x + y | y from [4], x from [1, 2, 3] ]` evalaute to? -3. Using either Kapulet's or Haskell's list comprehension syntax, write an expression that transforms `[3, 1, 0, 2]` into `[3, 3, 3, 1, 2, 2]`. +3. Using either Kapulet's or Haskell's list comprehension syntax, write an expression that transforms `[3, 1, 0, 2]` into `[3, 3, 3, 1, 2, 2]`. [[Here is a hint|assignment3 hints]], if you need it. - ## Lists @@ -18,11 +17,8 @@ 6. Continuing to encode lists in terms of their left-folds, what should `last` be, where `last [a, b, c]` should result in `c`. Let `last []` result in whatever `err` is bound to. -7. Continuing to encode lists in terms of their left-folds, how should we write `head`? This is challenging. +7. Continuing to encode lists in terms of their left-folds, how should we write `head`? This is challenging. [[Here is a hint|assignment3 hints]], if you need it. - ## Numbers