Skip to contents

Returns the smallest key currently present in the ordered sequence.

Usage

min_key(x)

Arguments

x

An ordered_sequence.

Value

Minimum key, or NULL when x is empty.

Details

This follows sequence key order directly.

Examples

x <- ordered_sequence("a", "b", keys = c(2, 1))
min_key(x)
#> [1] 1
min_key(ordered_sequence())
#> NULL