diff options
author | Xavier Leroy <xavier.leroy@inria.fr> | 1995-05-04 10:15:53 +0000 |
---|---|---|
committer | Xavier Leroy <xavier.leroy@inria.fr> | 1995-05-04 10:15:53 +0000 |
commit | 61bd8ace6bdb2652f4d51d64e3239a7105f56c26 (patch) | |
tree | e8b957df0957c1b483d41d68973824e280445548 /stdlib/list.mli | |
parent | 8f9ea2a7b886e3e0a5cfd76b11fe79d083a7f20c (diff) |
Passage a la version bootstrappee (franchissement du Rubicon)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'stdlib/list.mli')
-rw-r--r-- | stdlib/list.mli | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/stdlib/list.mli b/stdlib/list.mli new file mode 100644 index 000000000..00d0cc469 --- /dev/null +++ b/stdlib/list.mli @@ -0,0 +1,24 @@ +(* List operations *) + +val length : 'a list -> int +val hd : 'a list -> 'a +val tl : 'a list -> 'a list +val rev : 'a list -> 'a list +val flatten : 'a list list -> 'a list +val iter : ('a -> 'b) -> 'a list -> unit +val map : ('a -> 'b) -> 'a list -> 'b list +val fold_left : ('a -> 'b -> 'a) -> 'a -> 'b list -> 'a +val fold_right : ('a -> 'b -> 'b) -> 'a list -> 'b -> 'b +val map2 : ('a -> 'b -> 'c) -> 'a list -> 'b list -> 'c list +val iter2 : ('a -> 'b -> 'c) -> 'a list -> 'b list -> unit +val fold_left2 : ('a -> 'b -> 'c -> 'a) -> 'a -> 'b list -> 'c list -> 'a +val fold_right2 : ('a -> 'b -> 'c -> 'c) -> 'a list -> 'b list -> 'c -> 'c +val for_all : ('a -> bool) -> 'a list -> bool +val exists : ('a -> bool) -> 'a list -> bool +val mem : 'a -> 'a list -> bool +val assoc : 'a -> ('a * 'b) list -> 'b +val mem_assoc : 'a -> ('a * 'b) list -> bool +val assq : 'a -> ('a * 'b) list -> 'b +val split : ('a * 'b) list -> 'a list * 'b list +val combine : 'a list * 'b list -> ('a * 'b) list + |