diff options
-rw-r--r-- | Master/texmf/scripts/texlive/lua/texlive/utils.tlu | 10 |
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 |