parameters: (type_text)
return_statement: return '[' + num + ' x ' + str_types_sub_no_array(type_text) + ']'
docstring: Creates lti format of arrays e.g. 'type [N]' =>  '[N x type]'.
docstring_summary: Creates lti format of arrays e.g. 'type [N]' =>  '[N x type]'.
docstring_tokens: Creates lti format of arrays e . g . type [ N ] = > [ N x type ] .
function: def array_sub(type_text):
      """Creates lti format of arrays e.g. 'type [N]' =>  '[N x type]'."""
      num = re.search(r'\[(\d+)\]', type_text)
      if num is None:
          return type_text
      type_text = re.sub(r'\s*\[.*\]', '', type_text)
      num = num.group(1)
      return '[' + num + ' x ' + str_types_sub_no_array(type_text) + ']'
function_tokens: def array_sub ( type_text ) : num = re . search ( r'\[(\d+)\]' , type_text ) if num is None : return type_text type_text = re . sub ( r'\s*\[.*\]' , '' , type_text ) num = num . group ( 1 ) return '[' + num + ' x ' + str_types_sub_no_array ( type_text ) + ']'