summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReinhard Kotucha <reinhard.kotucha@web.de>2008-07-30 19:44:28 +0000
committerReinhard Kotucha <reinhard.kotucha@web.de>2008-07-30 19:44:28 +0000
commit0abace0b563b34e31fbf254ed3d0a08ba6d1b741 (patch)
tree152cc01e8a594b06ff41d9d9a3b5f35465867c1c
parentb87b06220708b9c766eeab39e176941f09da3f98 (diff)
/utils.tlu: add list().
git-svn-id: svn://tug.org/texlive/trunk@9910 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf/scripts/texlive/lua/texlive/utils.tlu10
1 files changed, 10 insertions, 0 deletions
diff --git a/Master/texmf/scripts/texlive/lua/texlive/utils.tlu b/Master/texmf/scripts/texlive/lua/texlive/utils.tlu
index 92c46872389..a31475b351c 100644
--- a/Master/texmf/scripts/texlive/lua/texlive/utils.tlu
+++ b/Master/texmf/scripts/texlive/lua/texlive/utils.tlu
@@ -60,6 +60,16 @@ function rmtree (path)
end
end
+
+function list (t)
+ local i = 0
+ return function ()
+ i = i + 1
+ return t[i]
+ end
+end
+
+
-- Local Variables:
-- lua-indent-level: 2
-- tab-width: 2