lua-users home
lua-l archive

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


16.05.2019, 17:58, "Paul K" <paul@zerobrane.com>:
>> for p, c in string.bytes(s) do body end
>> will iterate over all bytes in string s, with p being the position.
>> This is surprisingly clumsy in pure Lua, unless I am missing a trick.

> `s:gmatch("()(.)")`?
> Or am I missing something?

i guess he was referring to users wanting a new feature added to Lua
which already exists (or that could be easily achieved by using already
existing means).