RosettaCodeData/Task/Inverted-syntax/R/inverted-syntax-3.r

4 lines
89 B
R
Raw Permalink Normal View History

2013-04-10 21:29:02 -07:00
`%if%` <- function(expr, cond) if(cond) expr
print("Wow! Lucky Guess!") %if% (guess==6)