Get the field names, get or set certain fields of an JuliaObject.
fields(object) # S3 method for JuliaObject fields(object) field(object, name) # S3 method for JuliaObject field(object, name) field(object, name) <- value # S3 method for JuliaObject field(object, name) <- value
object | the JuliaObject. |
---|---|
name | a character string specifying the fields to be accessed or set. |
value | the new value of the field of the JuliaObject. |