From: Chris Barker Date: Mon, 1 Nov 2010 19:26:02 +0000 (-0400) Subject: Added assignmemnt 6 X-Git-Url: http://lambda.jimpryor.net/git/gitweb.cgi?p=lambda.git;a=commitdiff_plain;h=a92bbc12c3537a886f85ae063d5f77adfdb325d3 Added assignmemnt 6 --- diff --git a/assignment6.mdwn b/assignment6.mdwn index 8c62e73d..853403db 100644 --- a/assignment6.mdwn +++ b/assignment6.mdwn @@ -5,8 +5,8 @@ answer along with a count of the number of operations performed during the calculation. That is, the desired behavior should be like this: # lift ( + ) (lift ( / ) (unit 20) (unit 2)) - (lift ( * ) (unit 2) (unit 3)) 0;; - - : int * int = (16, 3) + (lift ( * ) (unit 2) (unit 3)) 0;; + - : int * int = (16, 3) Here, `lift` is the function that uses `bind` to prepare an ordinary arithmetic operator (such as addition `( + )`, division `( / )`, or