From 0abace0b563b34e31fbf254ed3d0a08ba6d1b741 Mon Sep 17 00:00:00 2001 From: Reinhard Kotucha Date: Wed, 30 Jul 2008 19:44:28 +0000 Subject: /utils.tlu: add list(). git-svn-id: svn://tug.org/texlive/trunk@9910 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf/scripts/texlive/lua/texlive/utils.tlu | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Master') 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 -- cgit v1.2.3