RosettaCodeData/Task/Inverted-syntax/R/inverted-syntax-3.r
2023-07-01 13:44:08 -04:00

3 lines
89 B
R

`%if%` <- function(expr, cond) if(cond) expr
print("Wow! Lucky Guess!") %if% (guess==6)