Creates a structure or mlist from a list of key-value pairs.
s = slr_convert_arglist(attributes) s = slr_convert_arglist(attributes, mlist_type)
list of attributes with their values
type of the mlist
structured data
Converts a list that consists in a sequence of keys and their value, i.e. list('attr1', value1, ..., 'attrN',valueN) to a structure or a mlist.
Creation of a structure:
attr_list = list('attr1', 1, 'attr2', 2) s = slr_convert_arglist(attr_list) disp(typeof(s)) s.attr1 s.attr2 | ![]() | ![]() |
Creation of a mlist: