X-Git-Url: http://lambda.jimpryor.net/git/gitweb.cgi?a=blobdiff_plain;f=assignment7.mdwn;h=5db178b2778ba1807ef6a904cbbe0ae862cf5550;hb=55a603b0e0ef6a5d020f3b025ec87b1bef17c7a7;hp=9be93e778758b9457826e89c3a1f18534b7d326b;hpb=5d3d0a72ea4e8f1d23816d851fed8027ce768864;p=lambda.git diff --git a/assignment7.mdwn b/assignment7.mdwn index 9be93e77..5db178b2 100644 --- a/assignment7.mdwn +++ b/assignment7.mdwn @@ -7,7 +7,7 @@ Write a monadic operation that enables you to retrieve the last-saved remainder, at any arbitrary later point in the computation. For example, you want to be able to calculate expressions like this: - (((some_long_computation / 12) + 5) - most_recent_remainder) * 2 - same_most_recent_remainder +1 + (((some_long_computation / 12) + 5) - most_recent_remainder) * 2 - same_most_recent_remainder + 1 The remainder here is retrieved later than (and in addition to) the division it's the remainder of. It's also retrieved more than once. Suppose a given remainder remains retrievable until the next division is performed.