diff options
| author | letouzey | 2013-10-23 22:17:11 +0000 |
|---|---|---|
| committer | letouzey | 2013-10-23 22:17:11 +0000 |
| commit | ef42739eadeb6ec3fc98b5beaa13bd859de44d15 (patch) | |
| tree | d0db75605b1ff04fe13f70f0a02aacbee7465cf0 /lib/cList.mli | |
| parent | 5e6145c871eea1e94566b252b4bfc4cd752f42d5 (diff) | |
cList.index is now cList.index_f, same for index0
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@16921 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'lib/cList.mli')
| -rw-r--r-- | lib/cList.mli | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/cList.mli b/lib/cList.mli index ee6595632c..aec326c514 100644 --- a/lib/cList.mli +++ b/lib/cList.mli @@ -137,16 +137,12 @@ sig (** [smartfilter f [a1...an] = List.filter f [a1...an]] but if for all i [f ai = true], then [smartfilter f l == l] *) - val index : 'a -> 'a list -> int + val index : 'a eq -> 'a -> 'a list -> int (** [index] returns the 1st index of an element in a list (counting from 1). *) - val index_f : 'a eq -> 'a -> 'a list -> int - - val index0 : 'a -> 'a list -> int + val index0 : 'a eq -> 'a -> 'a list -> int (** [index0] behaves as [index] except that it starts counting at 0. *) - val index0_f : 'a eq -> 'a -> 'a list -> int - val iteri : (int -> 'a -> unit) -> 'a list -> unit (** As [iter] but with the index argument (starting from 0). *) |
