R/struct.R
print.typed_instance.Rd
Print an instance
# S3 method for class 'typed_instance' print(x, ...)
An instance.
Ignored.
x, invisibly.
x
Box <- struct("Box", label = chr[1], items = list_of(chr[1])) print(Box(label = "tools", items = list("hammer", "nail"))) #> <Box> #> label : "tools" #> items : <list of 2>