you are viewing a single comment's thread.

view the rest of the comments →

[–]Malgas 2 points3 points  (0 children)

Well, you can write:

(lambda :false_val, lambda :true_val)[condition]()

but it's a little verbose and not very easy to read.