powered by
Determine if a value is contained in the finite set.
# S3 method for finite_set has(object, x)
Logical indicating membership.
A finite set.
A vector of values.
fs <- finite_set$new(c(1, 3, 5, 7)) has(fs, 3) # TRUE has(fs, 4) # FALSE
Run the code above in your browser using DataLab