X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Fextlib%2FhExtlib.ml;h=c16b11159c38ccde56621da9d3b9c97c611419c9;hb=393187c5f5a6e71d467ab04b65f3a935701724fb;hp=0d19524dcf1842d2667f36de5286b7adfdfb8ba0;hpb=dd5a5cfcb19e3ef5059dbb2d777a6f147dd556a6;p=helm.git diff --git a/helm/software/components/extlib/hExtlib.ml b/helm/software/components/extlib/hExtlib.ml index 0d19524dc..c16b11159 100644 --- a/helm/software/components/extlib/hExtlib.ml +++ b/helm/software/components/extlib/hExtlib.ml @@ -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) +;;