[luatex] print versus tex.print
Paul Isambert
zappathustra at free.fr
Mon Jan 23 18:23:47 CET 2012
Paul Isambert <zappathustra at free.fr> a écrit:
> You can easily fake it:
Since we were mentionning type(), this should have been, more properly:
> table.foreach = table.foreach or
> function (t, f)
> for k, v in pairs(t) do
> local ret = f(k, v)
> if ret then return ret end
if type(ret) ~= "nil" then return ret end
> end
> end
(And the same for foreachi.)
Paul
More information about the luatex
mailing list