From: jim Date: Sat, 21 Mar 2015 19:30:10 +0000 (-0400) Subject: removed X-Git-Url: http://lambda.jimpryor.net/git/gitweb.cgi?p=lambda.git;a=commitdiff_plain;h=b18e37c538c98f47159a96486860a808e2a068dc;ds=inline removed --- diff --git a/exercises/_assignment7.mdwn b/exercises/_assignment7.mdwn deleted file mode 100644 index 793a15e4..00000000 --- a/exercises/_assignment7.mdwn +++ /dev/null @@ -1,18 +0,0 @@ -## Baby monads - -(Depends on lecture notes for safe division by zero.) - -Write a function `lift'` that generalized the correspondence between + -and `add'`: that is, `lift'` takes any two-place operation on integers -and returns a version that takes arguments of type `int option` -instead, returning a result of `int option`. In other words, `lift'` -will have type: - - (int -> int -> int) -> (int option) -> (int option) -> (int option) - -so that `lift' (+) (Some 3) (Some 4)` will evalute to `Some 7`. -Don't worry about why you need to put `+` inside of parentheses. -You should make use of `bind'` in your definition of `lift'`: - - let bind' (u: int option) (f: int -> (int option)) = - match u with None -> None | Some x -> f x;;