Merge branch 'master' into working
[lambda.git] / exercises / assignment3_hint2.mdwn
similarity index 89%
rename from exercises/assignment3_hints.mdwn
rename to exercises/assignment3_hint2.mdwn
index 86cda04..2efd11d 100644 (file)
@@ -1,11 +1,3 @@
-## Comprehensions
-
-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*
-
-Define a function `dup (n, x)` that creates a list of *n* copies of `x`. Then use list comprehensions to transform `[3, 1, 0, 2]` into `[[3, 3, 3], [1], [], [2, 2]]`. Then use `join` to "flatten" the result.
-
 ## Lists
 
 7. Continuing to encode lists in terms of their left-folds, how should we write `head`? This is challenging.