X-Git-Url: http://lambda.jimpryor.net/git/gitweb.cgi?p=lambda.git;a=blobdiff_plain;f=exercises%2Fassignment1.mdwn;h=2543ff1f34a0e14acfe042fedb9aefff6e89b410;hp=6bfb1e189a8c90b72810c06d639e612769121201;hb=c0b923e3bb29f74cd37fd09f50a2d7f152e58f9f;hpb=eafcd988ccffee36091379f3c7f2279b59753e5d diff --git a/exercises/assignment1.mdwn b/exercises/assignment1.mdwn index 6bfb1e18..2543ff1f 100644 --- a/exercises/assignment1.mdwn +++ b/exercises/assignment1.mdwn @@ -96,9 +96,9 @@ * Write a function `unmap2` that is something like the inverse of `map2`. This function expects two arguments, the second being a sequence of elements of some type *t*. The first is a function `g` that expects a single argument of type *t* and returns a *pair* of results, rather than just one result. We want to collate these results, the first into one sequence, and the second into a different sequence. Then `unmap2` should return those two sequences. Thus if: - g z1 # evaluates to [x1, y1] - g z2 # evaluates to [x2, y2] - g z3 # evaluates to [x3, y3] + g z1 # evaluates to (x1, y1) + g z2 # evaluates to (x2, y2) + g z3 # evaluates to (x3, y3) Then `unmap2 (g, [z1, z2, z3])` should evaluate to `([x1, x2, x3], [y1, y2, y3])`.