spacepaste

  1.  
  2. type t = {
  3. a: a Global.t;
  4. b: b Global.t;
  5. }
  6. let create () = {a = Global.empty "a"; b = Global.empty "b"}
  7. let get_a x =
  8. Global.reify x.a (fun () -> 1)
  9. let get_b x =
  10. Global.reify x.b (fun () -> succ (get_a x))
  11.