[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: A useful useless fact about Lua keywords
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Wed, 15 Sep 2021 15:16:40 -0300
Try also this:
do
local C={}
for i=0,255 do C[i]=string.char(i); C[C[i]]=i end
function char(s,i) return C[s:byte(i)] end
end
s="Language"
for i=1,10 do print(i,char(s,i)) end