Return the dimension of the finite set.

# S3 method for class 'finite_set'
dim(x)

Arguments

x

A finite set.

Value

Integer; the dimension of the set.

Examples

fs <- finite_set$new(c(1, 3, 5, 7))
dim(fs) # 1
#> [1] 1