powered by
Creates a type that only accepts single values (vectors of length 1).
Scalar(type)
A new sicher_type that checks for length 1
A sicher_type object
age %:% Scalar(Integer) %<-% 30L try(age <- c(30L, 40L)) # Error: not scalar
Run the code above in your browser using DataLab