lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 20 December 2010 12:35, Randy Kramer <rhkramer@gmail.com> wrote:
> For those of us (maybe just me) just starting to watch from the peanut
> gallery, without the long lecture, can you tell me what s[3] does
> indicate--I mean what does the s function (is it a function?) do?
>

s is a string, [] is the indexing operator, s[3] is being used to mean
the 3rd character of s.

Matthew