Is the return type of "runWithCounter" in the assignment-pt2 wrong, or am I missing something?
Test5 expects the return type of runWithCounter to be (a, Int), but the declaration suggests to return only a?
If I'm changing the return type of runWithCounter to (a, Int), test5 succeeds.
Additionally, i'm having some difficulties finding a proper implementation for
myseq. Can you give me a small hint? I'm currently trying to force the evaluation for each member of 'Value' by calculating on the resulting value, without actually returning the result of that operation. Is there an easier way?