Is there a notation for indicating that an interval could be open or closed, (similar to the $\pm$ symbol meaning the operation could be $+$ or $-$)?
I am looking for an equivalent, less cumbersome way of writing something like "The domain of $f(x)$ is either $[a,b]$, or $[a,b)$, or $(a,b]$, or $[a,b]$." Does such notation exist?