Skip to contents

Creates a compact, serializable range descriptor for contiguous indices. This avoids allocating an explicit index vector for large slices.

Usage

idx_range(start, end)

Arguments

start

Integer. Start index (1-based, inclusive).

end

Integer. End index (1-based, inclusive).

Value

An object of class shard_idx_range.

Examples

r <- idx_range(1, 100)
r
#> idx_range [1:100]