Re: [NoW] Missing things from Lua
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: [NoW] Missing things from Lua
- From: Bob <sysinit@...>
- Date: 2019年5月16日 18:11:46 +0200
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).