Re: Replacing the "if" statement with an "if" expression which supersedes it

Francisco Olarte <[email protected]> Sat, 27 Jun 2026 18:44:22 +0200
Newsgroups gmane.comp.lang.lua.general
Message-ID <CA+bJJbxgtO03gZtmqxVQBsba1di-w+9tapwWJhAD7s1HMjZuWw@mail.gmail.com>
On Fri, 26 Jun 2026 at 20:08, Andrey Dobrovolsky
<[email protected]> wrote:
> I'm glad that You like community proposed snippets so much. I'd like
> to propose a pair of even easier to understand
>     ({[true] = b, [false] = c})[a]
    ({[true] = b, [false] = c})[not not a] -- Or just one not and
invert indexes.

Francisco Olarte.

-- 
You received this message because you are subscribed to the Google Groups "lua-l" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/lua-l/CA%2BbJJbxgtO03gZtmqxVQBsba1di-w%2B9tapwWJhAD7s1HMjZuWw%40mail.gmail.com.