with Not_found -> raise (Subst_not_found n)
;;
-let lookup_meta index metasenv =
+let lookup_meta n metasenv =
try
- List.find (fun (index', _, _, _) -> index = index') metasenv
- with Not_found -> raise (Meta_not_found index)
+ List.assoc n metasenv
+ with Not_found -> raise (Meta_not_found n)
;;
let fold g k f acc = function