]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/components/extlib/hExtlib.ml
New: pattern for elim documented.
[helm.git] / helm / software / components / extlib / hExtlib.ml
index 0d19524dcf1842d2667f36de5286b7adfdfb8ba0..c16b11159c38ccde56621da9d3b9c97c611419c9 100644 (file)
@@ -515,3 +515,8 @@ let chop_prefix prefix s =
 let touch s =
   try close_out(open_out s) with Sys_error _ -> ()
 ;;
+
+let rec mk_list x = function
+  | 0 -> []
+  | n -> x :: mk_list x (n-1)
+;;