week11 tweaks
authorJim Pryor <profjim@jimpryor.net>
Wed, 1 Dec 2010 09:03:54 +0000 (04:03 -0500)
committerJim Pryor <profjim@jimpryor.net>
Wed, 1 Dec 2010 09:03:54 +0000 (04:03 -0500)
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
coroutines_and_aborts.mdwn

index cd71be4..ff75eff 100644 (file)
@@ -47,7 +47,7 @@ and then having to remember which element in the triple was which:
 records let you attach descriptive labels to the components of the tuple:
 
        # type blah_record = { height : int; weight : int; char_tester : char -> bool };;
-       # let b2 = { height = 1; weight = 2; char_tester = fun c -> c = 'M' };;
+       # let b2 = { height = 1; weight = 2; char_tester = (fun c -> c = 'M') };;
        val b2 : blah_record = {height = 1; weight = 2; char_tester = <fun>}
        # let b3 = { height = 1; char_tester = (fun c -> c = 'K'); weight = 3 };; (* also works *)
        val b3 : blah_record = {height = 1; weight = 3; char_tester = <fun>}