let rec find_rec key = function Empty -> raise Not_found | Cons(k, d, rest) -> if compare key k = 0 then d else find_rec key rest