Return the supremum of the finite set.

# S3 method for class 'finite_set'
supremum(object)

Arguments

object

A finite set.

Value

Numeric; the maximum value(s).

Examples

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