I feel like I'm missing something in the if/else case. I have an answer, but I'm afraid it might be violating the spirit of the question. Does the X replacement have to be syntactically valid on its own? (I'm assuming this is pseudocode. If this is a particular language, I might be able to dredge up other answers based on the specifics of that language.)
no subject
Date: April 26th, 2013 01:17 am (UTC)