29.05.2014 Views

The history of luaTEX 2006–2009 / v 0.50 - Pragma ADE

The history of luaTEX 2006–2009 / v 0.50 - Pragma ADE

The history of luaTEX 2006–2009 / v 0.50 - Pragma ADE

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

end<br />

function filters.add(where,fnc,n)<br />

local list = somewhere(where)<br />

if not list then<br />

-- error<br />

elseif not n or n > #list + 1 then<br />

table.insert(list,#list+1)<br />

elseif n < 0 then<br />

table.insert(list,1)<br />

else<br />

table.insert(list,n)<br />

end<br />

end<br />

function filters.remove(where,fnc,n)<br />

local list = somewhere(where)<br />

if list and n and n > 0 and n

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!