03-29-2006, 06:41 AM
Quote:Moneo:Very good Ralph, I never saw that before.
Here's another one-liner to turn a switch on and off, in accordance with, and I quote you, "Most programmers consider TRUE as -1, and FALSE as 0."
x = -1 - x
*****
Challenge: Algorithms having only one line of code.
|
« Next Oldest | Next Newest »
|