| has.finite_set | R Documentation |
Determine if a value is contained in the finite set.
## S3 method for class 'finite_set'
has(object, x)
object |
A finite set. |
x |
A vector of values. |
Logical indicating membership.
fs <- finite_set$new(c(1, 3, 5, 7))
has(fs, 3) # TRUE
has(fs, 4) # FALSE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.