blob: 30cf5bfe1cd8fcb88d483764bc5247c26e491137 (
plain) (
tree)
|
|
exception TypeError
module VarMap = Mapext.Make(String)
let rec fix equal f s =
let fs = f s in
if equal fs s
then fs
else fix equal f fs
let (@@) f x = f x
let print_list x l =
Format.printf "%s: " x;
let rec aux = function
| [] -> ()
| [a] -> Format.printf "%s" a
| p::q -> Format.printf "%s, " p; aux q
in
Format.printf "["; aux l; Format.printf "]@.";
|