X-Git-Url: http://lambda.jimpryor.net/git/gitweb.cgi?p=lambda.git;a=blobdiff_plain;f=exercises%2F_assignment6.mdwn;h=1ebac0cd9d7e9c667d3b678b6cf85c0427e690a0;hp=b6a00dedd31771e23b6cfc49627b9ca4b87d8f28;hb=739888c429c1c16c40941d644cf218dd07f4fa27;hpb=35de8baadf52a3f6488fbd0463cdc331a4ea02e3;ds=sidebyside diff --git a/exercises/_assignment6.mdwn b/exercises/_assignment6.mdwn index b6a00ded..1ebac0cd 100644 --- a/exercises/_assignment6.mdwn +++ b/exercises/_assignment6.mdwn @@ -174,15 +174,15 @@ is `\p.[p]`, and the composition operator is Sanity check: - f p = [x, x+1] - s q = [x*x, x+x] - >=> f s 7 = [49, 14, 64, 16] + f p = [p, p+1] + s q = [q*q, q+q] + >=> f s 7 = [49, 14, 64, 16] 3. Do the same for zippy lists. That is, you need to find a composition operator such that - f p = [x, x+1] - s q = [x*x, x+x] - >=> f s 7 = [49, 64] + f p = [p, p+1] + s q = [q*q, q+q] + >=> f s 7 = [49, 16] and then prove it obeys the monad laws.