lua-users home
lua-l archive

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


That was a feature request. And that trick doesn't work for captures beyond 1 without introducing nils or a massive performance hit.

On 2017-07-03 04:31 PM, Dirk Laurie wrote:
No. But you can have it so `pat / drop` does that.


function drop(x,...) return ... end

2017-06-30 17:14 GMT+02:00 Soni L. <fakedme@gmail.com <mailto:fakedme@gmail.com>>:

    So uh can I have it so `pat / -1` removes capture 1 from pat,
    while leaving all others untouched?

-- Disclaimer: these emails may be made public at any given time,
    with or without reason. If you don't agree with this, DO NOT REPLY.




--
Disclaimer: these emails may be made public at any given time, with or without reason. If you don't agree with this, DO NOT REPLY.