diff options
author | Damien Doligez <damien.doligez-inria.fr> | 1997-10-31 12:59:29 +0000 |
---|---|---|
committer | Damien Doligez <damien.doligez-inria.fr> | 1997-10-31 12:59:29 +0000 |
commit | b8ccccff4994228b656515fe0ebbcb25eb456aec (patch) | |
tree | 691172f2d39ae0684cd1346cf9ed60c9f8d540cf /stdlib/list.ml | |
parent | 100004bca838c6d83a3056fe3321cd919df8c72a (diff) |
Makefiles: fix disparition de weak.cmo
Changement de type des fonctions iter
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1747 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'stdlib/list.ml')
-rw-r--r-- | stdlib/list.ml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/stdlib/list.ml b/stdlib/list.ml index bd7041961..8cacd1707 100644 --- a/stdlib/list.ml +++ b/stdlib/list.ml @@ -52,7 +52,8 @@ let rec map f = function | a::l -> let r = f a in r :: map f l let rec iter f = function - [] -> () + | [] -> () + | [a] -> f a | a::l -> f a; iter f l let rec fold_left f accu l = |