R/finite_set.R
has.finite_set.Rd
Determine if a value is contained in the finite set.
# S3 method for class 'finite_set' has(object, x)
A finite set.
A vector of values.
Logical indicating membership.
fs <- finite_set$new(c(1, 3, 5, 7)) has(fs, 3) # TRUE #> [1] TRUE has(fs, 4) # FALSE #> [1] FALSE