type clause = bool dpm -> bool dpm set;;
+* More:
+
(* this generalizes the getx function from hint 4 *)
let get (var : char) : entity dpm =
fun (r, h) ->
else bind_dpm entity1_dpm (fun e1 -> bind_dpm entity2_dpm (fun e2 -> unit_dpm (f e1 e2)))
in fun one_dpm -> unit_set (bind_dpm one_dpm eliminator);;
-
-
let new_peg_and_assign (var_to_bind : char) (d : entity) : bool -> bool dpm =
fun truth_value ->
fun (r, h) ->
(* include negate_op, and_op, or_op, and if_op as above *)
+* More:
+
(* some handy utilities *)
let (>>=) = bind_set;;
let getx = get 'x';;