]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/components/extlib/hExtlib.ml
added skip function
[helm.git] / helm / software / components / extlib / hExtlib.ml
index fe0f417cdf88521a401a54d0ebbf41ba79ef0b58..6af86f9cd4d4ac0b620d004976ea6a83fc951a6e 100644 (file)
@@ -529,3 +529,10 @@ let list_seq start stop =
     aux start
 ;;
 
+let rec list_skip n l =
+  match n,l with
+  | 0,_ -> l
+  | n,_::l -> list_skip (n-1) l
+  | _, [] -> assert false
+;;
+