Default value for NULL
This infix function makes it easy to replace NULL
s with a default
value. It's inspired by the way that Ruby's or operation (||
)
works.
x %||% y
x, y |
If |
1 %||% 2 NULL %||% 2
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.