X-Git-Url: http://lambda.jimpryor.net/git/gitweb.cgi?p=lambda.git;a=blobdiff_plain;f=assignment8.mdwn;h=a1e0140c7ce3a996553cea799b013d3464b5f5c6;hp=814f8d5663de0c86eed5a7ebb8741ef50995e28c;hb=f1012badf41d0d6d52dc849603eaca8aeb752b0b;hpb=07e66be3b3fa7b8b843894bdcbcb181bd1757349 diff --git a/assignment8.mdwn b/assignment8.mdwn index 814f8d56..a1e0140c 100644 --- a/assignment8.mdwn +++ b/assignment8.mdwn @@ -8,7 +8,7 @@ let rec move_botleft (z : 'a zipper) : 'a zipper = (* returns z if the targetted node in z has no children *) - (* else returns move_botleft (zipper which results from moving down and left in z) *) + (* else returns move_botleft (zipper which results from moving down from z to the leftmost child) *) _____ (* YOU SUPPLY THE DEFINITION *) @@ -25,6 +25,8 @@ {tree = Root; filler = t} ;; +   + let make_fringe_enumerator (t: 'a tree) = (* create a zipper targetting the root of t *) let zstart = new_zipper t @@ -131,28 +133,3 @@ (same-fringe? tree1 tree2) -