aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
authorGravatar ppedrot <ppedrot@85f007b7-540e-0410-9357-904b9bb8a0f7>2013-11-04 12:17:55 +0000
committerGravatar ppedrot <ppedrot@85f007b7-540e-0410-9357-904b9bb8a0f7>2013-11-04 12:17:55 +0000
commitb021f265da7666fa93d34ae3e42fa8bcf28f63ac (patch)
treef097764a42a9a647369816735c96c5fc89884dd7 /lib
parent57078bfa96f6ba8d9f15057d9777457575fb29dc (diff)
Allocation friendly version of Util.iterate.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@17052 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'lib')
-rw-r--r--lib/util.ml6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/util.ml b/lib/util.ml
index bc6a1ceac..a5ed584cd 100644
--- a/lib/util.ml
+++ b/lib/util.ml
@@ -87,9 +87,9 @@ let compose f g x = f (g x)
let const x _ = x
-let iterate f =
- let rec iterate_f n x =
- if n <= 0 then x else iterate_f (pred n) (f x)
+let iterate =
+ let rec iterate_f f n x =
+ if n <= 0 then x else iterate_f f (pred n) (f x)
in
iterate_f