>> (x and [a] or [b])[0] [Marcin 'Qrczak' Kowalczyk] > It computes both a and b. Nope, it doesn't. If x is true it evaluates only a; if x false, only b. > A correct solution is > (0 and (lambda: a) or (lambda: b))() Only if x is always false <wink>, repair the typo, and you're still left with "the usual" namespace visibility surprises. > Yes, it is ugly. They both are. Use if/then/else, for Parrot's sake.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4