def _getFieldIndexBySpecial(fields, special):
 for (i, field) in enumerate(fields):
  if (field.special == special):
   return i
 return None

def _getFieldIndexBySpecial ( fields , special ) : for ( i , field ) in enumerate ( fields ) : if ( field . special == special ) : return i return None
return index of the field matching the field meta special value .