lua-users home
lua-l archive

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


OK, change it to jfind. To help you remember that
the iterator variable is the 'j' return parameter of find.

2014-08-21 17:59 GMT+02:00 Daurnimator <quae@daurnimator.com>:
> On 21 August 2014 11:57, Dirk Laurie <dirk.laurie@gmail.com> wrote:
>>
>> That "lengthy" is a challenge ... here is my attempt, which has the
>> same fourth parameter that gsub has. 'gfind' is an independently
>> useful iterator form of find, except that the default is plain: you need
>> to specify "false" as second argument to get a pattern.
>
>
> gfind was the old name for gmatch (pre 2006).
> There's enough confusion around this from 10 year old tutorials.
> Please do not add fuel :)