diff options
author | filliatr <filliatr@85f007b7-540e-0410-9357-904b9bb8a0f7> | 1999-12-06 15:07:11 +0000 |
---|---|---|
committer | filliatr <filliatr@85f007b7-540e-0410-9357-904b9bb8a0f7> | 1999-12-06 15:07:11 +0000 |
commit | 84c0f274e3baa424299c7b098ad7ced9ea4bab0e (patch) | |
tree | 77c010e4391739eca90d6c22b73c67df28326e6a /lib | |
parent | 7d94e54e8dfa1d3d72d6c31f01dff49b701bcf99 (diff) |
declarations eliminations / debuggae inductifs (debut)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@212 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'lib')
-rw-r--r-- | lib/util.ml | 2 | ||||
-rw-r--r-- | lib/util.mli | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/lib/util.ml b/lib/util.ml index b96eca3ae..8410367f9 100644 --- a/lib/util.ml +++ b/lib/util.ml @@ -133,6 +133,8 @@ let list_fold_left_i f = in it_list_f +let list_iter_i f l = list_fold_left_i (fun i _ x -> f i x) 0 () l + let list_for_all_i p = let rec for_all_p i = function | [] -> true diff --git a/lib/util.mli b/lib/util.mli index b26d6a1d7..e0de343df 100644 --- a/lib/util.mli +++ b/lib/util.mli @@ -53,6 +53,7 @@ val list_assign : 'a list -> int -> 'a -> 'a list val list_distinct : 'a list -> bool val list_map_i : (int -> 'a -> 'b) -> int -> 'a list -> 'b list val list_index : 'a -> 'a list -> int +val list_iter_i : (int -> 'a -> unit) -> 'a list -> unit val list_fold_left_i : (int -> 'a -> 'b -> 'a) -> int -> 'a -> 'b list -> 'a val list_for_all_i : (int -> 'a -> bool) -> int -> 'a list -> bool val list_except : 'a -> 'a list -> 'a list |