<< setfield | Data structures | struct2cell >> |
st = struct() |
st = struct([]) |
st = struct(object) |
st = struct(field, value) |
st = struct(field, value, field2, value2, ..., fieldn, valuen) |
strings : field names, valid names are same than variable identifiers.
all data types supported by Nelson.
an object created with 'class' builtin.
a struct
struct returns a structure.
struct()
struct([])
date_st = struct('day', 15, 'month' ,'August','year', 1974)
Other way to create a struct:
date_st.day = 15
date_st.month = 'August'
date_st.year = 1974)
Version | Description |
---|---|
1.0.0 | initial version |
1.3.0 | Scalar String allowed as field name. |
Allan CORNET