aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/util.ml
diff options
context:
space:
mode:
authorGravatar herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7>2009-11-12 11:28:56 +0000
committerGravatar herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7>2009-11-12 11:28:56 +0000
commit432f9cbff79004a78f5e7bfaeb7fc05f786a1671 (patch)
treedcdd92dae3e476df9361c206f22018bb7f035c3c /lib/util.ml
parent6bf05daa46ced26deec23c33590e9414d26d40e2 (diff)
Experiment propagation of implicit arguments and arguments scope for
abbreviations of applied references. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@12506 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'lib/util.ml')
-rw-r--r--lib/util.ml3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/util.ml b/lib/util.ml
index d71912289..cdd351930 100644
--- a/lib/util.ml
+++ b/lib/util.ml
@@ -853,6 +853,9 @@ let rec list_skipn n l = match n,l with
| _, [] -> failwith "list_skipn"
| n, _::l -> list_skipn (pred n) l
+let rec list_skipn_at_least n l =
+ try list_skipn n l with Failure _ -> []
+
let rec list_addn n x l =
if n = 0 then l else x :: (list_addn (pred n) x l)