#NEWLINE# def struct2vector( struct , immutable = False ) : #NEWLINE# #INDENT# struct_desc = struct . struct_type ( ) . name . utf8value #NEWLINE# first_el = values . W_Symbol . make ( ( 'struct:' + struct_desc ) ) #NEWLINE# return values_vector . W_Vector . fromelements ( ( [ first_el ] + struct . vals ( ) ) , immutable = immutable )