diff options
author | ppedrot <ppedrot@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2013-11-04 12:17:55 +0000 |
---|---|---|
committer | ppedrot <ppedrot@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2013-11-04 12:17:55 +0000 |
commit | b021f265da7666fa93d34ae3e42fa8bcf28f63ac (patch) | |
tree | f097764a42a9a647369816735c96c5fc89884dd7 /lib | |
parent | 57078bfa96f6ba8d9f15057d9777457575fb29dc (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.ml | 6 |
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 |