Skip to contents

Returns a list containing the fields of a compact vector

Usage

compact_details(x)

Arguments

x

An ALTREP vector of class compact_realseq or compact_intseq

Value

A list with the elements:

  • length (integer scalar): the length of the sequence

  • start (integer scalar): the first value of the sequence

  • step (integer scalar) : the increment between entries in the sequence

  • expanded (double, integer vector, or NULL): a non-ALTREP version of x, or NULL if it hasn't been expanded

Examples

compact_details(1:5)
#> $length
#> [1] 5
#> 
#> $start
#> [1] 1
#> 
#> $step
#> [1] 1
#> 
#> $expanded
#> NULL
#>