X-Git-Url: http://lambda.jimpryor.net/git/gitweb.cgi?p=lambda.git;a=blobdiff_plain;f=hints%2Fassignment_4_hint_2.mdwn;fp=hints%2Fassignment_4_hint_2.mdwn;h=0000000000000000000000000000000000000000;hp=f9f4cf253a0b938b2d8a877bad7d90dd7051086e;hb=fd698b815e417dec463cb0f0e9ed056ab83daed6;hpb=573a8b36ce653c84c2aecb2b81ef99128cb41d13 diff --git a/hints/assignment_4_hint_2.mdwn b/hints/assignment_4_hint_2.mdwn deleted file mode 100644 index f9f4cf25..00000000 --- a/hints/assignment_4_hint_2.mdwn +++ /dev/null @@ -1,60 +0,0 @@ -Hints for `list_equal`. - -* If `left` is `[]`, what does `right` have to be for `left` and `right` to be equal? (Come on, it's not too hard, you can figure it out.) - -* Suppose on the other hand that `left` has head `left_hd` and tail `left_tl`. - -
    -
  1. If `right` is then `[]`, are `left` and `right` equal? -
  2. If `right` isn't `[]`, and its head isn't equal to `left_hd`, are `left` and `right` equal? -
  3. If `right` isn't `[]` and its head *is* equal to `left_hd`, what else has to be the case for `left` and `right` to be equal? -
- -* Can you now write a recursive definition of the `list_equal` function? -What's your base case? - - - - - -