Skip to contents

Vec<T>: an atomic vector for a scalar T, a list otherwise.

Usage

vec(type, min_length = NULL, max_length = NULL, unique = FALSE)

Arguments

type

An r8_field_type or an R8 type: The element type.

min_length

Optional Integer: Fewest elements.

max_length

Optional Integer: Most elements.

unique

Logical: Elements are distinct.

Value

An r8_field_type.

Examples

vec(type_double(min = 0), min_length = 1L)
#> <r8 field type> vector of double [0, Inf), length 1 or more