new_list_of: Create list_of subclass

View source: R/type-list-of.R

new_list_ofR Documentation

Create list_of subclass

Description

Create list_of subclass

Usage

new_list_of(
  x = list(),
  ptype = logical(),
  size = NULL,
  ...,
  class = character()
)

Arguments

x

A list

ptype

The prototype which every element of x belongs to. If NULL, the prototype is not specified.

size

The size which every element of x has. If NULL, the size is not specified.

...

Additional attributes used by subclass

class

Optional subclass name


vctrs documentation built on Jan. 24, 2026, 1:07 a.m.