From: Chris Barker Date: Sun, 31 Oct 2010 14:16:28 +0000 (-0400) Subject: edits X-Git-Url: http://lambda.jimpryor.net/git/gitweb.cgi?p=lambda.git;a=commitdiff_plain;h=ea61c563f158b9f279a5efb28b407bc818af43d3 edits --- diff --git a/week7.mdwn b/week7.mdwn index 62ef89f0..9f139c16 100644 --- a/week7.mdwn +++ b/week7.mdwn @@ -62,8 +62,10 @@ that provides at least the following three elements: * A bind operation (note the type): +
      let bind m f = match m with None -> None | Some n -> f n;;
      val bind : 'a option -> ('a -> 'b option) -> 'b option = 
+
`bind` takes two arguments (a monadic object and a function from ordinary objects to monadic objects), and returns a monadic