\usemodule[pre-30]

\StartSample{Arrays}

\startbuffer
\lua {
    lccodes = { }
}

\dorecurse{255} {
    \lua {
        lccodes[\recurselevel] = \number\lccode\recurselevel ;
    }
}

\luatex {
    for i in pairs(lccodes) do
        tex.print("\string\\lccode" .. i .. "=" .. lccodes[i] .. " ")
    end
}
\stopbuffer

\setups{show-usage}

\StopSample
