R/size.R
op-empty-default.Rd
Use this inline operator when you need to provide a default value for empty (as defined by vec_is_empty()) vectors.
vec_is_empty()
x %0% y
A vector
Value to use if x is empty. To preserve type-stability, should be the same type as x.
x
1:10 %0% 5 #> [1] 1 2 3 4 5 6 7 8 9 10integer() %0% 5 #> [1] 5