Determine if a value is contained in the finite set.

# S3 method for class 'finite_set'
has(object, x)

Arguments

object

A finite set.

x

A vector of values.

Value

Logical indicating membership.

Examples

fs <- finite_set$new(c(1, 3, 5, 7))
has(fs, 3) # TRUE
#> [1] TRUE
has(fs, 4) # FALSE
#> [1] FALSE