Create list_of subclass
new_list_of(
x = list(),
ptype = logical(),
size = NULL,
...,
class = character()
)A list
The prototype which every element of x belongs to. If NULL,
the prototype is not specified.
The size which every element of x has. If NULL, the size is
not specified.
Additional attributes used by subclass
Optional subclass name